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

[Question] Is there a way to select if a struct schema is a ref or not ? #54

Closed
Fifi31 opened this issue Jan 3, 2023 · 3 comments
Closed

Comments

@Fifi31
Copy link

Fifi31 commented Jan 3, 2023

Hello,

I noticed that every schema is put in reflector.Spec.Components.Schemas.MapOfSchemaOrRefValues, even structs that are fields of other structs, which are referenced in reflector.Spec.Components.Schemas.MapOfSchemaOrRefValues["Struct"].Schema.Properties["Field"].Schema.Items.SchemaReference.

Is there some options that can be used so schemas of fields of structs are set in reflector.Spec.Components.Schemas.MapOfSchemaOrRefValues["Struct"].Schema.Properties["Field"].Schema.Items.Schema directly ?

It is just a question, no problem if it is not possible.

@vearutop
Copy link
Member

vearutop commented Jan 3, 2023

I'm sorry, I don't understand. 😅

Could you make a small example to clarify expectations?

@vearutop
Copy link
Member

vearutop commented Jan 3, 2023

And btw, since this is a question it is better to move to discussions so that the topic is more visible to other people that may have same question.

@Fifi31 Fifi31 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2023
@Fifi31
Copy link
Author

Fifi31 commented Jan 4, 2023

I didn't know the discussions feature on github, I will switch to it and provide an example !

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

No branches or pull requests

2 participants