@openproficiency/schema 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +144 -0
- package/package.json +31 -0
- package/schemas/score-interpretation-list.schema.json +109 -0
- package/schemas/score-interpretation.schema.json +60 -0
- package/schemas/topic-list.schema.json +140 -0
- package/schemas/topic.schema.json +77 -0
- package/schemas/transcript-entry-verification.schema.json +49 -0
- package/schemas/transcript-entry.schema.json +123 -0
- package/schemas/transcript.schema.json +11 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# Open Proficiency Model
|
|
2
|
+
|
|
3
|
+
The Open Proficiency Model (OPM) is an open definition for quantifying an individual's familiarity with skills, capabilities, and other abilities.
|
|
4
|
+
|
|
5
|
+
Definitions to define the knowledge space:
|
|
6
|
+
|
|
7
|
+
- [Topic](specs/topic.md) - a defined unique area of knowledge for gaining experience and becoming proficient.
|
|
8
|
+
- [Topic List](specs/topic-list.md) - A list of topics provided by an issuer.
|
|
9
|
+
- [Issuer](specs/issuer.md) - A verified entity that can provide a topic list and/or create transcript entries.
|
|
10
|
+
|
|
11
|
+
Definitions to define and store proficiency:
|
|
12
|
+
|
|
13
|
+
- [Experience Source](specs/experience-source.md) - activities a user can complete to increase proficiency in topics. (regular work, projects, tutorials, etc.)
|
|
14
|
+
- [Topic Score](specs/topic-score.md) - a label indicating the degree of understanding for a specific topic.
|
|
15
|
+
- [Transcript Entry](specs/transcript-entry.md) - a topic score assigned to a specific user, claimed by an issuer.
|
|
16
|
+
- [Transcript](specs/transcript.md) - a collection of transcript entries for easier portability.
|
|
17
|
+
|
|
18
|
+
Definitions to interpret proficiency:
|
|
19
|
+
|
|
20
|
+
- [Topic Score Interpretation](specs/score-interpretation.md) - a standardized interpretation for a set of topic scores.
|
|
21
|
+
- [Topic Score Interpretation List](specs/score-interpretation-list.md) - a collection of topic score interpretations. Examples:
|
|
22
|
+
- [Badging](specs/score-interpretation-list.md#badges---goldsilverbronze)
|
|
23
|
+
- [Skill Proficiency Levels](specs/score-interpretation-list.md#simple-progression---arithmetic)
|
|
24
|
+
- [Job Role Levels](specs/score-interpretation-list.md#job-roles---math-teacher)
|
|
25
|
+
|
|
26
|
+
## Advantages
|
|
27
|
+
|
|
28
|
+
- **Verified** - All proficiency is signed by the issuer.
|
|
29
|
+
- **Distributed** - All transcript records are independent of the issuer and learning source.
|
|
30
|
+
- **Never Repeat** - Knowledge topics and proficiency are transferrable. New courses on the same topics don't invalidate old courses.
|
|
31
|
+
|
|
32
|
+
## Get started
|
|
33
|
+
|
|
34
|
+
Install the versioned JSON schema package:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm install @openproficiency/schema
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
import topicSchema from "@openproficiency/schema/topic.schema.json";
|
|
42
|
+
import topicListSchema from "@openproficiency/schema/topic-list.schema.json";
|
|
43
|
+
import scoreInterpretationSchema from "@openproficiency/schema/score-interpretation.schema.json";
|
|
44
|
+
import scoreInterpretationListSchema from "@openproficiency/schema/score-interpretation-list.schema.json";
|
|
45
|
+
import transcriptEntrySchema from "@openproficiency/schema/transcript-entry.schema.json";
|
|
46
|
+
import transcriptEntryVerificationSchema from "@openproficiency/schema/transcript-entry-verification.schema.json";
|
|
47
|
+
import transcriptSchema from "@openproficiency/schema/transcript.schema.json";
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Works With Open Proficiency
|
|
51
|
+
|
|
52
|
+
The **Works With Open Profiency** badge helps indicate to users of your platform, that their (new) proficiencies will be easy to manage, distribute, and validate across ecosystems.
|
|
53
|
+
|
|
54
|
+
<img width="180px" src="works-with/wwop-pink.png" />
|
|
55
|
+
|
|
56
|
+
### Can I add this to my service?
|
|
57
|
+
|
|
58
|
+
If your product or service follows all or most of the expectations in the specifications, then yes.
|
|
59
|
+
|
|
60
|
+
> [!TIP]
|
|
61
|
+
> A "Works With" program is planned but not in development yet. Self-regulation by the community is the preferred method for now.
|
|
62
|
+
|
|
63
|
+
## Diagram
|
|
64
|
+
|
|
65
|
+
```mermaid
|
|
66
|
+
flowchart BT
|
|
67
|
+
|
|
68
|
+
subgraph knowledge-domain["Knowledge Domain"]
|
|
69
|
+
%% Components
|
|
70
|
+
topic[/topic\]
|
|
71
|
+
pretopic[/pretopic*\]
|
|
72
|
+
subtopic[/subtopic*\]
|
|
73
|
+
topic-list@{ shape: docs, label: "topic-list" }
|
|
74
|
+
dependency-list@{ shape: docs, label: "topic-list<br/>dependency" }
|
|
75
|
+
|
|
76
|
+
%% Mapping
|
|
77
|
+
topic --"N Topics"--> topic-list
|
|
78
|
+
subtopic --> topic
|
|
79
|
+
pretopic -.-x topic
|
|
80
|
+
dependency-list -.-x topic-list
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
subgraph tracking-and-verification["Tracking and Verification"]
|
|
84
|
+
%% Components
|
|
85
|
+
topic-score[/"topic-score"\]
|
|
86
|
+
transcript-entry@{ shape: subproc, label: "transcript-entry" }
|
|
87
|
+
transcript@{ shape: div-rect, label: "transcript" }
|
|
88
|
+
issuer@{ shape: flag, label: "issuer" }
|
|
89
|
+
|
|
90
|
+
%% Mapping
|
|
91
|
+
issuer --"adds signature"--> transcript-entry
|
|
92
|
+
topic-score ---> transcript-entry
|
|
93
|
+
transcript-entry --"N entries"--> transcript
|
|
94
|
+
|
|
95
|
+
%% Mapping - External
|
|
96
|
+
topic-list --"1 topic"--> topic-score
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
subgraph official-interpretation["Official Interpretation"]
|
|
100
|
+
direction BT
|
|
101
|
+
%% Components
|
|
102
|
+
score-requirement[/score-requirement\]
|
|
103
|
+
score-interpretation{{"score-interpretation<br/>"}}
|
|
104
|
+
score-interpretation-list@{ shape: docs, label: "score-interpretation-list" }
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
%% Mapping
|
|
108
|
+
score-requirement --"N requirements"--> score-interpretation
|
|
109
|
+
score-interpretation --"N interpretations"--> score-interpretation-list
|
|
110
|
+
|
|
111
|
+
%% Mapping - External
|
|
112
|
+
topic-list --"1 topic<br/>1 score"--> score-requirement
|
|
113
|
+
issuer --"adds signature"--> score-interpretation-list
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
%% ----- YOUR RESOURCES ----- %%
|
|
117
|
+
|
|
118
|
+
subgraph experience-sources["Experience Source"]
|
|
119
|
+
%% Components
|
|
120
|
+
tutorial
|
|
121
|
+
product-usage
|
|
122
|
+
test
|
|
123
|
+
etc.
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
%% Mapping
|
|
127
|
+
topic-list -."N Topics from N Lists".-x experience-sources
|
|
128
|
+
experience-sources --"1 score<br/>1 user"--> topic-score
|
|
129
|
+
|
|
130
|
+
subgraph your-application["Your Services"]
|
|
131
|
+
%% Components
|
|
132
|
+
web-app@{ shape: stadium, label: "Web App" }
|
|
133
|
+
mobile-app@{ shape: stadium, label: "Mobile App" }
|
|
134
|
+
desktop-app@{ shape: stadium, label: "Desktop App" }
|
|
135
|
+
database@{ shape: lin-cyl, label: "Database" }
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
%% Mapping
|
|
139
|
+
score-interpretation-list --> your-application
|
|
140
|
+
transcript --> your-application
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
\* The `pre-` and `sub-` prefixes only indicate relationships between topics. They are not a different component.
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openproficiency/schema",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "JSON schemas for the Open Proficiency Model.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"files": [
|
|
7
|
+
"schemas"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
"./*.schema.json": "./schemas/*.schema.json"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/openproficiency/model.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/openproficiency/model/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/openproficiency/model#readme",
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "node --test tests/**/*.test.mjs"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"ajv": "^8.20.0",
|
|
28
|
+
"ajv-formats": "^3.0.1",
|
|
29
|
+
"yaml": "^2.9.0"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "score-interpretation-list.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Score Interpretation List",
|
|
6
|
+
"description": "A collection of score interpretations that imply order via their naming or required proficiencies.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"description": "JSON Schema version",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"owner": {
|
|
16
|
+
"description": "The entity that maintains this score interpretation list. Domain name. Ex: 'example.com'",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "hostname",
|
|
19
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}$"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"name": {
|
|
23
|
+
"description": "A namespace to associate the interpretations. Kebab case. Ex: 'my-list-name'",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "kebab-case",
|
|
26
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"description": {
|
|
30
|
+
"description": "A brief description of the knowledge domain covered by this interpretation list.",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"version": {
|
|
35
|
+
"description": "Version of this list. Semantic versioning format. Ex: '1.0.0'",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "semver",
|
|
38
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
"issued-at": {
|
|
42
|
+
"description": "ISO 8601 timestamp of when this version was created.",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "date-time"
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
"signature": {
|
|
48
|
+
"description": "ASCII-armored detached OpenPGP (GPG) signature over the protected fields of this interpretation list, used to verify authenticity.",
|
|
49
|
+
"oneOf": [
|
|
50
|
+
{
|
|
51
|
+
"type": "string",
|
|
52
|
+
"pattern": "^-----BEGIN PGP SIGNATURE-----\\r?\\n(?:[^\\n]+\\r?\\n)*\\r?\\n(?:[A-Za-z0-9+/]+=*\\r?\\n)+=[A-Za-z0-9+/]{4}\\r?\\n-----END PGP SIGNATURE-----\\r?\\n?$"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "null"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
"signed-by": {
|
|
61
|
+
"description": "Email address of the GPG key that produced 'signature'. For convenience only. Verify with signature. Convention: 'proficiency@<owner>'.",
|
|
62
|
+
"oneOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "string",
|
|
65
|
+
"format": "email"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "null"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
"score-interpretations": {
|
|
74
|
+
"description": "Map of score interpretation identifiers to their definitions",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"patternProperties": {
|
|
77
|
+
"^[a-z0-9]+(?:-[a-z0-9]+)*$": {
|
|
78
|
+
"$ref": "https://raw.githubusercontent.com/openproficiency/model/refs/heads/main/schemas/score-interpretation.schema.json"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"description": "Map of shorthand aliases to external topic list references",
|
|
86
|
+
"type": "object",
|
|
87
|
+
"patternProperties": {
|
|
88
|
+
"^[a-z0-9]+(?:-[a-z0-9]+)*$": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "HTTP(S) URL to a versioned topic list (YAML/JSON)",
|
|
91
|
+
"format": "uri"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
"required": [
|
|
99
|
+
"owner",
|
|
100
|
+
"name",
|
|
101
|
+
"description",
|
|
102
|
+
"version",
|
|
103
|
+
"issued-at",
|
|
104
|
+
"signature",
|
|
105
|
+
"signed-by",
|
|
106
|
+
"score-interpretations"
|
|
107
|
+
],
|
|
108
|
+
"additionalProperties": false
|
|
109
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "score-interpretation.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Score Interpretation",
|
|
6
|
+
"description": "A standardized interpretation of a set of topic scores, typically one of several in a score interpretation list.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"description": "JSON Schema version",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"id": {
|
|
16
|
+
"description": "Unique identifier for this score interpretation. Kebab case. Ex: 'my-interpretation-id'",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "kebab-case",
|
|
19
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"name": {
|
|
23
|
+
"description": "A friendly name used for display",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"description": {
|
|
28
|
+
"description": "A brief explanation of this score interpretation",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
"requirements": {
|
|
33
|
+
"description": "A logical expression of topics and required scores for this interpretation. Supports logical operators (all, any, at-least-N) for composing requirements. A flat topic-score map is treated as implicit 'all'. Operators may have a unique identifier suffix (e.g., 'all-abc1', 'any-abc2', 'at-least-3-abc3'). Topic keys always contain a dot (dependency.topic) so they cannot conflict with operator keywords.",
|
|
34
|
+
"$id": "requirements-expression",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"patternProperties": {
|
|
37
|
+
"^all(-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)?$": {
|
|
38
|
+
"description": "All expressions must be satisfied. Each entry in the value is a separate operand.",
|
|
39
|
+
"$ref": "requirements-expression"
|
|
40
|
+
},
|
|
41
|
+
"^any(-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)?$": {
|
|
42
|
+
"description": "At least one expression must be satisfied. Each entry in the value is a separate operand.",
|
|
43
|
+
"$ref": "requirements-expression"
|
|
44
|
+
},
|
|
45
|
+
"^at-least-[1-9][0-9]*(-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)?$": {
|
|
46
|
+
"description": "At least N expressions must be satisfied, where N is encoded in the operator name. Each entry in the value is a separate operand.",
|
|
47
|
+
"$ref": "requirements-expression"
|
|
48
|
+
},
|
|
49
|
+
"^[a-z0-9]+(?:-[a-z0-9]+)*(?:\\.[a-z0-9]+(?:-[a-z0-9]+)*)+$": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Score level required for the topic"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
"required": ["name", "description", "requirements"],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "topic-list.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Topic List",
|
|
6
|
+
"description": "A collection of topics that define a knowledge domain declared by a particular issuer.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"description": "JSON Schema version",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"owner": {
|
|
16
|
+
"description": "The entity that maintains this topic list. Domain name. Ex: 'example.com'",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "hostname",
|
|
19
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}$"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"name": {
|
|
23
|
+
"description": "A name to define scope for this topic list. Kebab case. Ex: 'my-list-name'",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "kebab-case",
|
|
26
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"description": {
|
|
30
|
+
"description": "A brief description of the knowledge domain covered by this topic list.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"maxLength": 100
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
"version": {
|
|
36
|
+
"description": "Version of this topic list. Semantic versioning format. Ex: '1.0.0'",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "semver",
|
|
39
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
"issued-at": {
|
|
43
|
+
"description": "ISO 8601 timestamp of when this version was created.",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "date-time"
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
"signature": {
|
|
49
|
+
"description": "ASCII-armored detached OpenPGP (GPG) signature over the protected fields of this topic list, used to verify authenticity.",
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^-----BEGIN PGP SIGNATURE-----\\r?\\n(?:[^\\n]+\\r?\\n)*\\r?\\n(?:[A-Za-z0-9+/]+=*\\r?\\n)+=[A-Za-z0-9+/]{4}\\r?\\n-----END PGP SIGNATURE-----\\r?\\n?$"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "null"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
"signed-by": {
|
|
62
|
+
"description": "Email address of the GPG key that produced 'signature'. For convenience only. Verify with signature. Convention: 'proficiency@<owner>'.",
|
|
63
|
+
"oneOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "string",
|
|
66
|
+
"format": "email"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "null"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
"topics": {
|
|
75
|
+
"description": "Map of topic identifiers to their definitions",
|
|
76
|
+
"type": "object",
|
|
77
|
+
"patternProperties": {
|
|
78
|
+
"^[a-z0-9]+(?:-[a-z0-9]+)*$": {
|
|
79
|
+
"$ref": "https://raw.githubusercontent.com/openproficiency/model/refs/heads/main/schemas/topic.schema.json"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": false
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"description": "Map of shorthand aliases to external topic list references",
|
|
87
|
+
"type": "object",
|
|
88
|
+
"patternProperties": {
|
|
89
|
+
"^[a-z0-9]+(?:-[a-z0-9]+)*$": {
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Shorthand reference: a fully qualified name 'owner/name@version' (e.g. 'example.com/math@0.1.0') for registry lookup.",
|
|
94
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}/[a-z0-9]+(?:-[a-z0-9]+)*@(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "object",
|
|
98
|
+
"description": "Long-form reference using explicit fields. Optionally provides exact locations, removing dependency on any registry.",
|
|
99
|
+
"properties": {
|
|
100
|
+
"topic-list-owner": {
|
|
101
|
+
"description": "The owner of the referenced topic list. Domain name. Ex: 'example.com'",
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "hostname",
|
|
104
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}$"
|
|
105
|
+
},
|
|
106
|
+
"topic-list-name": {
|
|
107
|
+
"description": "The name of the referenced topic list. Kebab case. Ex: 'math'",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"format": "kebab-case",
|
|
110
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
111
|
+
},
|
|
112
|
+
"topic-list-version": {
|
|
113
|
+
"description": "The version of the referenced topic list. Semantic versioning format. Ex: '0.1.0'",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"format": "semver",
|
|
116
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
117
|
+
},
|
|
118
|
+
"locations": {
|
|
119
|
+
"description": "Optional list of exact HTTP(S) URLs where this topic list version can be retrieved. Removes dependency on any registry. Not included in the issuer's signature verification, so it may be amended by redistributors without invalidating the signature.",
|
|
120
|
+
"type": "array",
|
|
121
|
+
"items": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "uri"
|
|
124
|
+
},
|
|
125
|
+
"uniqueItems": true
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"required": ["topic-list-owner", "topic-list-name", "topic-list-version"],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
"required": ["owner", "name", "description", "version", "issued-at", "signature", "signed-by", "topics"],
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "topic.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Topic",
|
|
6
|
+
"description": "A defined unique area of knowledge",
|
|
7
|
+
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"description": "JSON Schema version",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"id": {
|
|
16
|
+
"description": "Unique identifier for this topic within its topic list. Kebab case. Ex: 'my-topic-id'",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "kebab-case",
|
|
19
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"display-name": {
|
|
23
|
+
"description": "Optional human-friendly name for this topic.",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"maxLength": 100
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"description": {
|
|
29
|
+
"description": "A brief explanation of the knowledge represented by this topic. Max 100 characters.",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"maxLength": 100
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"docs-url": {
|
|
35
|
+
"description": "HTTP(S) URL to a reference that explains this topic.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "uri"
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
"validity-period": {
|
|
41
|
+
"description": "The suggested validity period when assigning a score to this topic. Min 30 days. Default is 732 days (~2 years).",
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"minimum": 1,
|
|
44
|
+
"default": 732
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
"subtopics": {
|
|
48
|
+
"description": "List of topics that directly represent proficiency in a subspace of this topic.",
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"oneOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Reference to a topic identifier"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"$ref": "#"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"uniqueItems": true
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
"pretopics": {
|
|
65
|
+
"description": "List of topics required as prerequisites before beginning to obtain proficiency in this topic.",
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "Reference to a topic identifier or external topic (e.g., 'namespace.topic-id')"
|
|
70
|
+
},
|
|
71
|
+
"uniqueItems": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
"required": ["description"],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "transcript-entry-verification.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Transcript Entry Verification Response",
|
|
6
|
+
"description": "Response envelope for batch transcript entry verification lookups.",
|
|
7
|
+
|
|
8
|
+
"type": "object",
|
|
9
|
+
"patternProperties": {
|
|
10
|
+
"^[a-f0-9]{64}$": {
|
|
11
|
+
"oneOf": [{ "$ref": "#/$defs/valid-entry" }, { "$ref": "#/$defs/invalid-entry" }]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
|
|
16
|
+
"$defs": {
|
|
17
|
+
"valid-entry": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"valid": {
|
|
21
|
+
"const": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["valid"],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"invalid-entry": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"valid": {
|
|
32
|
+
"const": false
|
|
33
|
+
},
|
|
34
|
+
"reason": {
|
|
35
|
+
"description": "Issuer provided reason for invalid status.",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["dishonesty", "policy-violation", "incorrect", "other"]
|
|
38
|
+
},
|
|
39
|
+
"invalidated-at": {
|
|
40
|
+
"description": "ISO 8601 timestamp indicating when validity ended.",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "date-time"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": ["valid", "invalidated-at"],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "transcript-entry.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Transcript Entry",
|
|
6
|
+
"description": "A permanent record of a user's proficiency score for a single topic.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"description": "JSON Schema version",
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
"user-email": {
|
|
16
|
+
"description": "The user's email address to act as a unique identifier. Ex: 'user@example.com'",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": "email"
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"topic": {
|
|
22
|
+
"description": "The topic identifier for which proficiency is being recorded. Kebab case. Ex: 'addition'",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "kebab-case",
|
|
25
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
"topic-list": {
|
|
29
|
+
"description": "Name of the topic list that defines the topic. Kebab case. Ex: 'math'",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "kebab-case",
|
|
32
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
"topic-list-version": {
|
|
36
|
+
"description": "Version of the topic list. Semantic versioning format. Ex: '1.0.0'",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "semver",
|
|
39
|
+
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
"topic-list-owner": {
|
|
43
|
+
"description": "Domain name of the entity that maintains the topic list. Ex: 'example.com'",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"format": "hostname",
|
|
46
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}$"
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
"topic-list-sources": {
|
|
50
|
+
"description": "Optional list of URLs where the topic list is hosted. The issuer's original is recommended first.",
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "uri"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
"score": {
|
|
59
|
+
"description": "The degree of proficiency for a specific topic. [unaware, aware, familiar, competent, fluent]",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"enum": ["unaware", "aware", "familiar", "competent", "fluent"]
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
"issued-at": {
|
|
65
|
+
"description": "ISO 8601 timestamp of when this topic's score was recorded.",
|
|
66
|
+
"type": "string",
|
|
67
|
+
"format": "date-time"
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
"valid-until": {
|
|
71
|
+
"description": "ISO 8601 timestamp of when this topic's score expires.",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"format": "date-time"
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
"issued-by": {
|
|
77
|
+
"description": "Domain name of the entity that issued this transcript entry. Ex: 'example.com'",
|
|
78
|
+
"type": "string",
|
|
79
|
+
"format": "hostname",
|
|
80
|
+
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z]{2,}$"
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
"verification-url": {
|
|
84
|
+
"description": "HTTPS URL to the issuer verification API endpoint. Used for additional confirmation of this transcript entry.",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": "uri"
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
"signature": {
|
|
90
|
+
"description": "ASCII-armored detached OpenPGP (GPG) signature over the protected fields of this transcript entry, used to verify authenticity.",
|
|
91
|
+
"oneOf": [
|
|
92
|
+
{
|
|
93
|
+
"type": "string",
|
|
94
|
+
"pattern": "^-----BEGIN PGP SIGNATURE-----\\r?\\n(?:[^\\n]+\\r?\\n)*\\r?\\n(?:[A-Za-z0-9+/]+=*\\r?\\n)+=[A-Za-z0-9+/]{4}\\r?\\n-----END PGP SIGNATURE-----\\r?\\n?$"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "null"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
"signed-by": {
|
|
103
|
+
"description": "Email address of the GPG key that produced 'signature'. For convenience only. Verify with signature. Convention: 'proficiency@<owner>'.",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"format": "email"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
|
|
109
|
+
"required": [
|
|
110
|
+
"user-email",
|
|
111
|
+
"topic",
|
|
112
|
+
"topic-list",
|
|
113
|
+
"topic-list-version",
|
|
114
|
+
"topic-list-owner",
|
|
115
|
+
"score",
|
|
116
|
+
"issued-at",
|
|
117
|
+
"valid-until",
|
|
118
|
+
"issued-by",
|
|
119
|
+
"signature",
|
|
120
|
+
"signed-by"
|
|
121
|
+
],
|
|
122
|
+
"additionalProperties": false
|
|
123
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "transcript.schema.json",
|
|
4
|
+
|
|
5
|
+
"title": "Transcript",
|
|
6
|
+
"description": "A collection of transcript entries representing a user's proficiency across multiple topics.",
|
|
7
|
+
"type": "array",
|
|
8
|
+
"items": {
|
|
9
|
+
"$ref": "https://raw.githubusercontent.com/openproficiency/model/refs/heads/main/schemas/transcript-entry.schema.json"
|
|
10
|
+
}
|
|
11
|
+
}
|