Skip to content
Discussion options

You must be logged in to vote

The __op<hash> names don't come from ASP.NET Core. They're generated by FastEndpoints' OpenAPI integration (CreateOperationSchemaVariantRefId in SharedContext.cs).

When an endpoint has a request example, FastEndpoints takes the first example's property values and sets them as example on each property schema (OperationTransformer.Requests.cs). PromptType is a $ref. To avoid writing an example into the shared component, it clones the component into a per-operation variant, PromptType__op.... Later it merges variants that are identical, so endpoints with the same PromptType example end up sharing one, and different examples stay separate. So your setup isn't wrong. This is how the integratio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MeikelLP
Comment options

Answer selected by MeikelLP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants