mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 06:19:08 +00:00
Fix null's in schema
This commit is contained in:
parent
9c9e2334dc
commit
09ecd1f23a
1 changed files with 26 additions and 46 deletions
|
@ -15,22 +15,19 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"maxLength": 255
|
"maxLength": 255
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 255,
|
"maxLength": 255
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"uris": {
|
"uris": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 1024,
|
"maxLength": 1024
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -43,14 +40,12 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"enum": ["PASSBOLT_SECRET_DATA"]
|
"enum": ["PASSBOLT_SECRET_DATA"]
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 4096,
|
"maxLength": 4096
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,22 +61,19 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"maxLength": 255
|
"maxLength": 255
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 255,
|
"maxLength": 255
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"uris": {
|
"uris": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 1024,
|
"maxLength": 1024
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -101,22 +93,19 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"maxLength": 255
|
"maxLength": 255
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 255,
|
"maxLength": 255
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"uris": {
|
"uris": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 1024,
|
"maxLength": 1024
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -129,14 +118,12 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"enum": ["PASSBOLT_SECRET_DATA"]
|
"enum": ["PASSBOLT_SECRET_DATA"]
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 4096,
|
"maxLength": 4096
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
},
|
},
|
||||||
"totp": {
|
"totp": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -174,23 +161,16 @@ var ResourceSchemas = map[string]json.RawMessage{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 255
|
"maxLength": 255
|
||||||
},
|
},
|
||||||
"username": {
|
|
||||||
"type": "string",
|
|
||||||
"maxLength": 255,
|
|
||||||
"nullable": true
|
|
||||||
},
|
|
||||||
"uris": {
|
"uris": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 1024,
|
"maxLength": 1024
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"maxLength": 10000,
|
"maxLength": 10000
|
||||||
"nullable": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue