payload-openapi: Schema and component names #56
barthy-koeln
started this conversation in
General
Replies: 2 comments
-
Hi, for the schema names I chose to use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @barthy-koeln, I've just released |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Teun, thanks for the great work.
I'd personally prefer using the singluar/plural names respectively for schema/component definitions.
The easiest example: The default
User
collection.Currently it generates schemas called
users
, representing a single user, anduserss
, representing a list of users.Using the defined Labels, it would for example be
User
andUsers
.I use the OpenAPI spec to generate TypeScript interfaces and services and I'd like them to ideally look as close to the payload generated types as possible. Best case scenario, they would be completely interchangeable.
Was this a concious choice, and if yes why?
If not, I would happily submit a pull request.
Barthy
Beta Was this translation helpful? Give feedback.
All reactions