-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Columns with NOT NULL and DEFAULT and serials should not be "required" #1653
Comments
I agree. This seems to be wrong: postgrest/src/PostgREST/OpenAPI.hs Line 61 in 3f690ec
Columns with default value should not be marked as required, even if they have a |
any updates? we need it for deets! |
@ungarmichael Feel free to open a PR! |
wolfgangwalther
changed the title
Swagger required field for serial primary key
Columns with NOT NULL and DEFAULT should not be "required"
Nov 4, 2022
wolfgangwalther
changed the title
Columns with NOT NULL and DEFAULT should not be "required"
Columns with NOT NULL and DEFAULT and serials should not be "required"
Nov 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description of issue
For table
Post method Swagger user model is generated as
Shouldn't required contain only "name"?
The text was updated successfully, but these errors were encountered: