-
Notifications
You must be signed in to change notification settings - Fork 54
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
Metadata improvements #27
Comments
Hi @dud225 , About the types, could you elaborate on why it is needed? booleans and numbers are valid types following the OpenAPI v3 specification. Without the full context of why you need it, I think you can always process the JSON output to change those types to strings.
mm you want to limit what fields an object can have or specify what fields an object must have? |
Hello.
enabled: "true"
replica: "2" So in order to provide some flexibility, as a chart author I'm used to allow such usage by leverage a
I would like to be able to enforce both, to force some mandatory values to be present and to catch non-existant fields (e.g. due to a typo). |
yes, if you change in the default value from a boolean So, in short, what you are requesting is to support a parameter to be provided in different types, for example string and boolean, that will be represented in the schema by an About the object fields it would require some extra metadata to be added to set those constraints in the schema. |
Yes correct.
I'm not sure to get what you mean here. |
Currently, a modifier changes the default value or type that is shown in the
In order to avoid adding more tags that would be more complex, we could do something like:
While using the first one to render the documentation into the |
OK got it, so the README won't list all the possibility, only the first one that would be considered the main type. |
I have been thinking a bit more about it, and the suggested approach would not be so simple since adding a modifier to a parameter will change its default value into the README.md, and it is not the desired default behavior. |
We will close this issue because it has more than 2 years without any update an there is no no similar requests or reactions from the community about this. |
Hello
readme-generator
currently lacks some flexibility on what it generates.There is no way to provide the users some leeway about the types that we accommodate. For example we may want to allow booleans and numbers to be expressed as strings:
"true"
,"1"
:Also we may want to limit what fields a object can have:
Maybe we could piggyback on the extra properties file discussed elsewhere: #15
Regards.
The text was updated successfully, but these errors were encountered: