Skip to content

Commit

Permalink
fix: missing schema props
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Dec 30, 2023
1 parent 4801702 commit cb2ec66
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
15 changes: 15 additions & 0 deletions schemas/schema-generate-field.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@
},
"length": {
"type": ["number", "null"]
},
"unique": {
"type": ["boolean", "null"]
},
"externalId": {
"type": ["boolean", "null"]
},
"startingNumber": {
"type": ["number", "null"]
},
"defaultValue": {
"type": ["string", "null"]
},
"securityClassification": {
"type": ["string", "null"]
}
},
"required": ["type"]
Expand Down
31 changes: 17 additions & 14 deletions schemas/schema-generate-sobject.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,7 @@
"additionalProperties": false,
"properties": {
"nameField": {
"type": "object",
"properties": {
"label": {
"type": ["string", "null"]
},
"type": {
"type": ["string", "null"]
},
"displayFormat": {
"type": ["string", "null"]
}
},
"additionalProperties": false,
"description": "Used by classical CustomObject"
"$ref": "#/definitions/NameField"
},
"label": {
"type": ["string", "null"]
Expand Down Expand Up @@ -80,6 +67,22 @@
},
"required": ["nameField"],
"description": "There are a lot of properties that we don't, and some that jsforce thinks are mandatory that aren't. Many apply to the various sub-species (mdt, external, events)\n\nThis type represents a \"classical\" CustomObject subset that can deploy."
},
"NameField": {
"type": "object",
"properties": {
"label": {
"type": ["string", "null"]
},
"type": {
"type": ["string", "null"]
},
"displayFormat": {
"type": ["string", "null"]
}
},
"additionalProperties": false,
"description": "Used by classical CustomObject"
}
}
}

0 comments on commit cb2ec66

Please sign in to comment.