Skip to content

Commit 5055021

Browse files
committed
Update docs generator to generate unconstrained types
- This is necessary as the secrets exec config now contains a member of type `Value`
1 parent fc75290 commit 5055021

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/generate-component-docs.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,13 @@ def resolve_bare_schema(root_schema, schema)
928928
fix_grouped_enums_if_numeric!(grouped)
929929
grouped.transform_values! { |values| { 'enum' => values } }
930930
grouped
931+
when nil
932+
# Unconstrained/empty schema (e.g., Value without constraints).
933+
# Represent it as accepting any JSON type so downstream code can render it
934+
# and attach defaults/examples based on actual values.
935+
@logger.debug 'Resolving unconstrained schema (any type).'
936+
937+
{ '*' => {} }
931938
else
932939
@logger.error "Failed to resolve the schema. Schema: #{schema}"
933940
exit 1

0 commit comments

Comments
 (0)