Skip to content

Instantly share code, notes, and snippets.

@abdheshkumar
Last active August 22, 2017 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdheshkumar/48a4b0ed7a9ab67aaa73ed3224d7053f to your computer and use it in GitHub Desktop.
Save abdheshkumar/48a4b0ed7a9ab67aaa73ed3224d7053f to your computer and use it in GitHub Desktop.
```javascript
{
"title":"Report Properties",
"description":"A JSON Schema describing a Report Properties",
"$schema":"http://json-schema.org/draft-04/schema#",
"type":"object",
"properties":{
"server":{
"type":"string",
"description":"URL of JRS instance."
},
"resource":{
"type":"string",
"description":"Report resource URI.",
"pattern":"^/[^/~!#\\$%^|\\s`@&*()\\+={}\\[\\]:;\"'<>,?/\\|\\\\]+(/[^/~!#\\$%^|\\s`@&* ()\\+={}\\[\\]:;\"'<>,?/\\|\\\\]+)*$"
},
"container":{
"type":"string",
"description":"CSS selector for container to render report to."
},
"params":{
"$ref":"#/definitions/params"
},
"pages":{
"type":[
"string",
"integer"
],
"description":"Range of report's pages or single report page",
"pattern":"^\\d+(\\-\\d+)?$",
"default":1
},
"required":[
"server",
"resource"
]
}
}
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment