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

Use a extension property to define PostgreSQL formats #4

Open
laurenceisla opened this issue May 25, 2023 · 0 comments
Open

Use a extension property to define PostgreSQL formats #4

laurenceisla opened this issue May 25, 2023 · 0 comments

Comments

@laurenceisla
Copy link
Member

laurenceisla commented May 25, 2023

Maybe add x-pg-format in the same way that x-mysql-type is used in this example: https://github.com/swagger-api/validator-badge/blob/75bfd0b70ad4bc4543ca6f83e0f51baba664966a/src/test/resources/valid_oas3.yaml#L21-L23

Currently PostgREST adds the PostgreSQL format to the "format" key, which does not accept values like "double precision", "bigint", "smallint" etc. Although, more study on the format keyword and custom format attributes should be made to determine the best option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant