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
Custom Fields in Document #768
Comments
I have the same issue, what is the workaround that you are using? |
We manually extended the types like here. So the |
@FrankEssenberger if you think there's a way to update the types please submit a PR. Thanks for raising this issue. |
this lib: https://github.com/drwpow/openapi-typescript/blob/main/src/types.ts uses the
would it make sense to improve the types package with something similar? I could work on a PR if owners of the repo agrees with it |
… a pre-existing index signature (fixes kogosoftwarellc#768)
… a pre-existing index signature (fixes kogosoftwarellc#768)
… a pre-existing index signature (fixes kogosoftwarellc#768)
… a pre-existing index signature (fixes kogosoftwarellc#768)
Dear open-api types team,
I was doing an update to version 9 recently and got a few type errors which where easy to fix. However, we have a wrapper for the openApi generator which adds some custom properties to the document e.g.
x-my-additional-property
which can be on the root, path or operation.I saw that for the operation the type goes down from the document so I could put an object containing the custom fields. However, for the
PathItemObject
I can not set the value foron the
Document
which exposes only .I was wondering if these genric arguments are supposed to be used to put custom properties? If so it should be possible to set them all on the root object i.e.
Document
. I also think it would be nice to either have a single generic parameter holding all additional properties combined, or one for each location?This is not a critical issue with
Omit<>
I could adjust the types as I needed but it would be nice if this works out of the box. I wanted to discuss the solution before I open a PR.The text was updated successfully, but these errors were encountered: