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
FieldMap is a "hash with any value type" model - { [k: string]: any } in TypeScript.
The RAML wrongly returns a type that has a single boolean empty property.
"fields": {
"type": "object",
"id": "urn:jsonschema:com:gentics:mesh:core:rest:node:FieldMap",
"required": true,
"description": "Dynamic map with fields of the node language specific content.",
"properties": {
"empty": {
"type": "boolean"
}
}
}
This produces an incorrect TypeScript model:
exportinterfaceFieldMap{empty: boolean;}
GenericResponse is correctly typed in the RAML, FieldMap needs to have a similar JsonSchema:
"fields": {
"type": "object",
"id": "urn:jsonschema:com:gentics:mesh:core:rest:node:FieldMap",
"required": true,
"description": "Dynamic map with fields of the node language specific content.",
"additionalProperties": {
"type": "any"
}
}
This would produce the correct TypeScript model:
exportinterfaceFieldMap{[key: string]: any;}
The text was updated successfully, but these errors were encountered:
FieldMap
is a "hash with any value type" model -{ [k: string]: any }
in TypeScript.The RAML wrongly returns a type that has a single boolean
empty
property.This produces an incorrect TypeScript model:
GenericResponse
is correctly typed in the RAML,FieldMap
needs to have a similar JsonSchema:This would produce the correct TypeScript model:
The text was updated successfully, but these errors were encountered: