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
I'm using ajv to validate the json-schema from a connector and build a form for it. It looks like the schema is invalid because the top level object is missing the type property.
This doesn't work
{
"description": "Receive messages from a Slack channel.",
"properties": {
"channel": {
"description": "The Slack channel to receive messages from",
"example": "#myroom",
"title": "Channel",
"type": "string"
},
"token": {
"description": "The token to access Slack. A Slack app is needed. This app needs to have channels:history and channels:read permissions. The Bot User OAuth Access Token is the kind of token needed.",
"title": "Token",
"type": "string",
"x-descriptors": [
"urn:alm:descriptor:com.tectonic.ui:password"
]
}
},
"required": [
"channel",
"token"
],
"title": "Slack Source"
}
This does work
{
"description": "Receive messages from a Slack channel.",
"properties": {
"channel": {
"description": "The Slack channel to receive messages from",
"example": "#myroom",
"title": "Channel",
"type": "string"
},
"token": {
"description": "The token to access Slack. A Slack app is needed. This app needs to have channels:history and channels:read permissions. The Bot User OAuth Access Token is the kind of token needed.",
"title": "Token",
"type": "string",
"x-descriptors": [
"urn:alm:descriptor:com.tectonic.ui:password"
]
}
},
"required": [
"channel",
"token"
],
"title": "Slack Source",
"type": "object"
}
Note the final "type": "object" property
The text was updated successfully, but these errors were encountered:
I'm using ajv to validate the json-schema from a connector and build a form for it. It looks like the schema is invalid because the top level object is missing the
type
property.This doesn't work
This does work
Note the final
"type": "object"
propertyThe text was updated successfully, but these errors were encountered: