Skip to content

Commit 73614f2

Browse files
committed
hide standard fields from form
1 parent 6364304 commit 73614f2

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

static/schema.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const schema = {
1414
},
1515
"programmingLanguage": {"type": "string"},
1616
"license": {"type": "string"},
17+
"description": {"type": "string" },
1718
"creator": {
1819
"title": "Creator",
1920
"type": "array",
@@ -23,25 +24,12 @@ const schema = {
2324
"properties": {
2425
"givenName": {"type": "string"},
2526
"familyName": { "type": "string" },
26-
"address": {"type": "string"},
2727
"email": {"type": "string"},
28-
"id": {"description": "ORCID ID", "type": "string", "format": "uri"}
28+
"id": {"description": "Author's ORCID ID, see <https://orcid.org>.", "type": "string", "format": "uri"}
2929
}
3030
}
31-
},
32-
"sameAs": {
33-
"type": "string",
34-
"format": "uri"
35-
},
36-
"url": {
37-
"type": "string",
38-
"format": "uri"
39-
},
40-
"description": {
41-
"title": "Description",
42-
"description": "A short description of the item.",
43-
"type": "string"
4431
}
32+
4533
}
4634
};
4735

static/uiSchema.json

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,9 @@
11
const uiSchema= {
2-
firstName: {
3-
"ui:autofocus": true,
4-
"ui:emptyValue": "",
5-
},
6-
age: {
7-
"ui:widget": "updown",
8-
"ui:title": "Age of person",
9-
"ui:description": "(earthian year)",
10-
},
11-
bio: {
12-
"ui:widget": "textarea",
13-
},
14-
password: {
15-
"ui:widget": "password",
16-
"ui:help": "Hint: Make it strong!",
17-
},
18-
date: {
19-
"ui:widget": "alt-datetime",
20-
},
21-
telephone: {
22-
"ui:options": {
23-
inputType: "tel",
24-
},
2+
3+
"@type": {
4+
"ui:widget": "hidden"
255
},
6+
"@context": {
7+
"ui:widget": "hidden"
8+
}
269
};

0 commit comments

Comments
 (0)