Possible bug in generating docs #1968
Closed
mihaigalos
started this conversation in
General
Replies: 2 comments
-
Modified it to this form, type and description now works but default value isn't shown: -deletionPolicy?: "Orphan" | "Delete" = "Delete"
+deletionPolicy?: str "Orphan" | "Delete" = "Delete"
Also, seens the inline docs just repeat the type and the default values? - this is prone to error and needs maintaining in both places but the truth is in the schema definition, not the comments for docs:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Closed in kcl-lang/kcl-go#476. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
Not sure if I'm doing something wrong but I'm trying to generate docs for https://github.com/kcl-lang/modules/blob/main/crossplane-provider-aws/v1alpha1/acm_aws_crossplane_io_v1alpha1_certificate.k and it doesn't work correctly:
I get this:
So the
deletionPolicy
is of type "str" according to the inline docs but shown as "Orphan".Running with this:
If this discussion identifies a bug, please direct me to the repo I can open up an issue. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions