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
Describe the bug
A clear and concise description of what the bug is.
test data
// Max number of rows in each audit log file. Log records will be discarded above this number.
test_field_limit?: int & > 0
error log:
failed to unmarshal raw OpenAPI schema to JSONSchemaProps: [error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field JSONSchemaProps.properties.exclusiveMinimum of type bool]
open schema
test_field_limit:
description: Max number of rows in each audit log file. Log records will be discarded above this number.
type: integer
exclusiveMinimum: 0
rds_audit_log_statement_policy:
description: The policy controlling how the audit log plugin writes query events to its log file. Supported values are 'ALL' (default), 'UPDATES', 'UPDATES_OR_ERRORS', 'ERRORS' and 'NONE'.
type: string
enum:
- ALL
- UPDATES
- NONE
- ERRORS
- UPDATES_OR_ERRORS
wait_timeout:
description: The number of seconds the server waits for activity on a non-interactive TCP/IP or UNIX File connection before closing it.
type: integer
minimum: 1
maximum: 31536000
The text was updated successfully, but these errors were encountered:
sophon-zt
changed the title
[BUG] failed to transform from cuelang to openapischema when exclusiveMinimum field
[BUG] failed to transform from cuelang to openapischema when exclusiveMinimum field exists
Dec 1, 2023
sophon-zt
changed the title
[BUG] failed to transform from cuelang to openapischema when exclusiveMinimum field exists
[BUG] failed to transform from cuelang to openapischema when exclusiveMinimum field exists for OpenApiSchema
Dec 1, 2023
Seems we need a proper way to convert CUE to Yalm/JSON to JSONSchemaProps.
the encodeded json string from CUE is:
And the JSONSchemaProps struct is
When converting from JSONObject to JSONSchemaProps, there is a mismatch in fields.
It should convert exclusiveMinimum: 1 (JSON) to exclusiveMinmum: true and Minimum: 1 in JSONSchemaProps.
The CUE community has solved this issued in #cue1. But we still failed to convert values to JSONSchemaProps.
To work-around this bug, we suggested to to use >=, <= instand of >, <.
e.g. max_connections >100 --> max_connections >=101 will do.
Describe the bug
A clear and concise description of what the bug is.
test data
error log:
open schema
The text was updated successfully, but these errors were encountered: