You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Temporary workaround: implementation of huma.Resolver/huma.ResolverWithPath interface.
Generated OAS doesn't have a Key schema.
InputBody:
additionalProperties: falseproperties:
$schema:
description: A URL to the JSON Schema for this object.examples:
- https://example.com/schemas/InputBody.jsonformat: urireadOnly: truetype: stringvalues:
additionalProperties:
description: A value for a map.maxLength: 32minLength: 1type: stringtype: objectrequired:
- valuestype: object
Value type is represented by additionalProperties.
Key may be represented by propertyNames like
...
values:
propertyNames:
type: stringmaxLength: 10minLength: 1additionalProperties:
description: A value for a map.maxLength: 32minLength: 1type: stringtype: object
...
From what I've checked in the source code, propertyNames is not supported yet.
Could you please briefly describe what needs to be considered for the implementation in the source code ( if someone wants to contribute it )?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi there,
I have the following types
main.go
One parameter,
values,
is a map ofKey
andValue
.Key
andValue
have validation rules ( inTransfromSchema
).The issue.
Key
validation doesn't work.main_test.go
Temporary workaround: implementation of
huma.Resolver/huma.ResolverWithPath
interface.Key
schema.Value
type is represented byadditionalProperties
.Key
may be represented bypropertyNames
likeFrom what I've checked in the source code,
propertyNames
is not supported yet.Could you please briefly describe what needs to be considered for the implementation in the source code ( if someone wants to contribute it )?
Thank you.
The text was updated successfully, but these errors were encountered: