schemas.schema-form.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gravitee-apim-plugin-endpoint-mock Show documentation
Show all versions of gravitee-apim-plugin-endpoint-mock Show documentation
Use a Mock backend to emulate the behaviour of a typical HTTP server and test processes
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"messageInterval": {
"title": "Interval between messages publication",
"description": "Interval between messages publication, in milliseconds.",
"type": "integer",
"default": 1000
},
"messageContent": {
"title": "Content of published messages",
"description": "Content of published messages. Will be suffixed with message index.",
"type": "string",
"format": "text",
"default": "mock message"
},
"messageCount": {
"title": "Count of published messages",
"description": "Count of published messages. If not specified, there is no limit.",
"type": "integer"
},
"headers": {
"type":"array",
"title":"Message Headers",
"description":"Static headers added to the message for downstream consumption",
"items":{
"type":"object",
"title":"Header",
"properties":{
"name":{
"type":"string",
"title":"Name"
},
"value":{
"type":"string",
"title":"Value"
}
},
"required":[
"name",
"value"
],
"additionalProperties": false
}
},
"metadata": {
"type":"array",
"title":"Message metadata",
"description":"Static metadata added to the message for downstream consumption",
"items":{
"type":"object",
"title":"Header",
"properties":{
"name":{
"type":"string",
"title":"Name"
},
"value":{
"type":"string",
"title":"Value"
}
},
"required":[
"name",
"value"
],
"additionalProperties": false
}
}
},
"required": ["messageContent", "messageInterval"],
"additionalProperties": false
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy