How to use the fastjsonschema.compile function in fastjsonschema

To help you get started, we’ve selected a few fastjsonschema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cisco-en-programmability / dnacentersdk / tests / models / validators / v1_3_0 / jsd_4bb22af046fa8f08.py View on Github external
def __init__(self):
        super(JSONSchemaValidator4Bb22Af046Fa8F08, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "response": {
                "properties": {
                "taskId": {},
                "url": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                }
                },
                "type": [
                "object",
github cisco-en-programmability / dnacentersdk / tests / models / validators / v2_1_1 / jsd_cd98780f4888a66d.py View on Github external
def __init__(self):
        super(JSONSchemaValidatorCd98780F4888A66D, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "response": {
                "properties": {
                "taskId": {},
                "url": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                }
                },
                "type": [
                "object",
github cisco-en-programmability / dnacentersdk / tests / models / validators / v1_3_1 / jsd_17929bc7465bb564.py View on Github external
def __init__(self):
        super(JSONSchemaValidator17929Bc7465BB564, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "response": {
                "properties": {
                "taskId": {},
                "url": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                }
                },
                "type": [
                "object",
github cisco-en-programmability / dnacentersdk / tests / models / validators / v1_3_0 / jsd_a395fae644ca899c.py View on Github external
def __init__(self):
        super(JSONSchemaValidatorA395Fae644Ca899C, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "response": {
                "properties": {
                "flowAnalysisId": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                },
                "taskId": {
                "description":
                 "",
                "type": [
github cisco-en-programmability / dnacentersdk / tests / models / validators / v2_1_1 / jsd_7aa3da9d4e098ef2.py View on Github external
def __init__(self):
        super(JSONSchemaValidator7Aa3Da9D4E098Ef2, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "response": {
                "properties": {
                "taskId": {},
                "url": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                }
                },
                "type": [
                "object",
github cisco-en-programmability / dnacentersdk / dnacentersdk / models / validators / v1_3_3 / jsd_c2a43ad24098baa7.py View on Github external
def __init__(self):
        super(JSONSchemaValidatorC2A43Ad24098Baa7, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "items": {
                "properties": {
                "authenticateTemplateName": {
                "description":
                "Authenticate Template Name",
                "type": [
                "string",
                "null"
                ]
                },
                "dataIpAddressPoolName": {
                "description":
                "Data Ip Address Pool Name",
                "type": [
                "string",
github cisco-en-programmability / dnacentersdk / dnacentersdk / models / validators / v1_2_10 / jsd_09b0f9ce4239ae10.py View on Github external
def __init__(self):
        super(JSONSchemaValidator09B0F9Ce4239Ae10, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "_id": {
                "description":
                 "",
                "type": [
                "string",
                "null"
                ]
                },
                "deviceInfo": {
                "properties": {
                "aaaCredentials": {
                "properties": {
                "password": {
                "description":
github cisco-en-programmability / dnacentersdk / dnacentersdk / models / validators / v2_1_1 / jsd_0b836b7b4b6a9fd5.py View on Github external
def __init__(self):
        super(JSONSchemaValidator0B836B7B4B6A9Fd5, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "properties": {
                "deviceIdList": {
                "items": {
                "type": [
                "string",
                "null",
                "object"
                ]
                },
                "type": [
                "array",
                "null"
                ]
                }
                },
github cisco-en-programmability / dnacentersdk / dnacentersdk / models / validators / v2_1_1 / jsd_87a8ba444ce9bc59.py View on Github external
def __init__(self):
        super(JSONSchemaValidator87A8Ba444Ce9Bc59, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "items": {
                "properties": {
                "deviceManagementIpAddress": {
                "description":
                "Device Management Ip Address",
                "type": [
                "string",
                "null"
                ]
                },
                "siteNameHierarchy": {
                "description":
                "Site Name Hierarchy",
                "type": [
                "string",
github cisco-en-programmability / dnacentersdk / dnacentersdk / models / validators / jsd_1e80bb50430b8634.py View on Github external
def __init__(self):
        super(JSONSchemaValidator1E80Bb50430B8634, self).__init__()
        self._validator = fastjsonschema.compile(json.loads(
            '''{
                "additionalProperties": false,
                "type": "object"
                }'''.replace("\n" + ' ' * 16, '')
        ))