Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate primitive types for aliases of primitive types in Swagger #163

Open
xperiandri opened this issue Oct 25, 2020 · 0 comments
Open

Comments

@xperiandri
Copy link
Contributor

Description

Aliases to primitive types are not translated to primitive types

Repro steps

components:
  schemas:
    PhoneNumber:
      type: string
    Order:
      type: object
      properties:
        phone:
          $ref: '#/components/schemas/PhoneNumber'
components:
  schemas:
    PhoneNumber:
      type: string
    Order:
      type: object
      properties:
        phone:
          allOf:
            - $ref: '#/components/schemas/PhoneNumber'
          nullable: false

Expected behavior

Phone property is resolved as string

Actual behavior

Both of these are resolved as obj instead of string

Known workarounds

Unknown

Related information

<PackageReference Include="SwaggerProvider" Version="0.10.7" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant