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

Make array types in API nullable #166

Merged
1 commit merged into from
Mar 22, 2023
Merged

Make array types in API nullable #166

1 commit merged into from
Mar 22, 2023

Commits on Mar 22, 2023

  1. Make array types in API nullable

    This change makes array types in the OAS nullable, without it when you
    create an API request object during a PATCH like:
    
    {
      "Licenses": null
    }
    
    the API returns an error that the value is not nullable. We may also
    want to do this for the other fields too.
    
    We may want to revisit this when we revisit all the schemas for
    GET/POST/PATCH because often null isn't a valid setting for some of
    these arrays and it would be better to have a default of an empty list.
    Tehsmash authored and Sam Betts committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    3ebc117 View commit details
    Browse the repository at this point in the history