UNPKG

melosys-schema

Version:
86 lines (85 loc) 2.48 kB
{ "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://melosys.nav.no/schemas/journalforing-schema.json", "type": "object", "title": "The Root Schema", "additionalProperties": false, "required": [ "avsenderType", "brukerID", "avsenderID", "avsenderNavn", "erBrukerAvsender", "mottattDato", "hoveddokument", "vedlegg", "behandlingsInformasjon" ], "properties": { "avsenderType": { "type": ["string", "null"] }, "brukerID": { "$id": "#/properties/brukerID", "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/fnr" }, "avsenderID": { "$id": "#/properties/avsenderID", "type": ["string","null"], "title": "The Avsenderid Schema", "default": "", "examples": [ "30098000492" ] }, "avsenderNavn": { "type": ["string", "null"] }, "erBrukerAvsender": { "$id": "#/properties/erBrukerAvsender", "type": "boolean", "title": "The Erbrukeravsender Schema", "default": false, "examples": [ true ] }, "mottattDato": { "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/dato-tid" }, "hoveddokument": { "$id": "#/properties/dokument", "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/dokument" }, "vedlegg": { "$id": "#/items/properties/vedlegg", "type": "array", "title": "The Vedlegg Schema", "items": { "$id": "#/items/properties/vedlegg/items", "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/nullable-dokument" } }, "behandlingsInformasjon": { "$id": "#/properties/behandlingsInformasjon", "type": ["object", "null"], "additionalProperties": false, "title": "The behandlingsInformasjon Schema", "required": [ "sakstype", "behandlingstype" ], "properties": { "sakstype": { "$id": "#/properties/behandlingsInformasjon/properties/sakstype", "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/kodeverk" }, "behandlingstype": { "$id": "#/properties/behandlingsInformasjon/properties/behandlingstype", "$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/kodeverk" } } } } }