melosys-schema
Version:
MelosSys Schema Mock data
111 lines (110 loc) • 2.57 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://melosys.nav.no/schemas/anmodningsperioder-get-schema.json",
"type": "object",
"title": "The Anmodningsperioder get schema",
"additionalProperties": false,
"required": [
"anmodningsperioder"
],
"properties": {
"anmodningsperioder": {
"$ref": "#/definitions/anmodningsperioder"
}
},
"definitions": {
"anmodningsperiode": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"fomDato",
"tomDato",
"lovvalgBestemmelse",
"tilleggBestemmelse",
"unntakFraBestemmelse",
"lovvalgsland",
"unntakFraLovvalgsland",
"medlemskapsperiodeID",
"trygdeDekning",
"sendtUtland"
],
"properties": {
"id": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"fomDato": {
"$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/dato"
},
"tomDato": {
"$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/dato"
},
"lovvalgBestemmelse": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"tilleggBestemmelse": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"unntakFraBestemmelse": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"lovvalgsland": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"unntakFraLovvalgsland": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"medlemskapsperiodeID": {
"type": [
"string",
"null"
],
"pattern": "^(.*)$"
},
"trygdeDekning": {
"oneOf": [
{
"$ref": "http://melosys.nav.no/schemas/definitions-schema.json#/definitions/trygdeDekning"
},
{
"type": "null"
}
]
},
"sendtUtland": {
"type": "boolean"
}
}
},
"anmodningsperioder": {
"type": "array",
"items": {
"$ref": "#/definitions/anmodningsperiode"
}
}
}
}