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

Missing Property Generation For Type object #3975

Closed
JohnDebono opened this issue Jan 8, 2024 · 2 comments
Closed

Missing Property Generation For Type object #3975

JohnDebono opened this issue Jan 8, 2024 · 2 comments
Assignees
Labels
generator Issues or improvements relater to generation capabilities.

Comments

@JohnDebono
Copy link

JohnDebono commented Jan 8, 2024

When generating the Http Client for the below W model, Properties X and Y are generated while Z is not. The code snippet below is generated from Swashbuckle's swagger.json. Is there a correct way to handle this?

      "W": {
        "type": "object",
        "properties": {
          "X": {
            "type": "string",
            "nullable": true
          },
          "Y": {
            "type": "string",
            "format": "uuid"
          },
          "Z": {
            "nullable": true
          }
    }
@github-project-automation github-project-automation bot moved this to Todo in Kiota Jan 8, 2024
@baywet baywet self-assigned this Jan 9, 2024
@baywet baywet added question generator Issues or improvements relater to generation capabilities. labels Jan 9, 2024
@baywet baywet added this to the Backlog milestone Jan 9, 2024
@baywet
Copy link
Member

baywet commented Jan 9, 2024

Hi @JohnDebono
Thanks for using kiota and for reaching out.
In your example, is nullable: true the only information about Z? if so this is by design, this property doesn't have enough type information to be projected to the generated model.
However, if something comes back from the service, it'll be in the additional properties of the model.
Let us know if you have further questions.

@JohnDebono
Copy link
Author

Thanks @baywet worked with the Additional Data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Issues or improvements relater to generation capabilities.
Projects
Archived in project
Development

No branches or pull requests

3 participants
@baywet @JohnDebono and others