How to set $ref in OpenApiSchema #3734
Unanswered
wunderlichh
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Instead you need to use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
i have a problem with the new v10 version of this library.
My code contains some DTO classes with normal string property values. I annotate those properties with an custom attribute "DomainEnumeration" to signal an ISchemaFilter to override the types of those string properties with an $ref to an known schema of this enum. This is done to not have to deal with my custom enum type & ASP.NET Core model binding and have a strongly typed value at the client side (i auto generate the TS client code).
My problem is that the new version of this library doesnt seem to have the
Referenceproperty onOpenApiSchemaand i dont find a way to circumvent this.Snippet of my schema filter (the working v9.0.6 version)
Any hint or help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions