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

[C#] Wrong extended properties datatype #1070

Closed
HugoMario opened this issue Sep 30, 2022 · 1 comment
Closed

[C#] Wrong extended properties datatype #1070

HugoMario opened this issue Sep 30, 2022 · 1 comment
Assignees

Comments

@HugoMario
Copy link
Contributor

Having:

   Pet:
      type: object
      required:
        - name
        - photoUrls
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
          example: doggie
        status:
          type: string
          description: pet status in the store
          enum:
            - available
            - pending
            - sold
        part:
          type: array
          items:
            oneOf:
              - $ref: "#/components/schemas/Dog"
              - $ref: "#/components/schemas/Cat"

  Cat:
      allOf:
        - $ref: '#/components/schemas/Pet'
        - type: object
          properties:
            hunts:
              type: boolean
            age:
              type: integer

Generates an output with wrong extended properties in the composed one:

public Pet(long? id = default(long?), string name = default(string), StatusEnum? status = default(StatusEnum?), List<OneOfPetPartItems> part = default(List<OneOfPetPartItems>))
public Cat(bool? hunts = default(bool?), int? age = default(int?), long? id = default(long?), string name = default(string), StatusEnum? status = default(StatusEnum?), List<Object> part = default(List<Object>)) : base(id, name, status, part)

this makes that compile errors appears in build project process.

@HugoMario HugoMario self-assigned this Sep 30, 2022
@HugoMario
Copy link
Contributor Author

fixed by #1071

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