Skip to content

Commit

Permalink
Publishing generated metaschema resources [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
oscalbuilder committed Feb 1, 2023
1 parent 8442852 commit aed20d4
Show file tree
Hide file tree
Showing 9 changed files with 1,199 additions and 203 deletions.
232 changes: 204 additions & 28 deletions json/schema/oscal_assessment-plan_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,14 @@
{ "scheme" :
{ "title" : "External Identifier Schema",
"description" : "Indicates the type of external identifier.",
"$ref" : "#/definitions/URIDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/URIDatatype" },

{ "enum" :
[ "http://orcid.org/" ] } ] },
"id" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/StringDatatype" } },
"required" :
[ "id",
"scheme" ],
Expand Down Expand Up @@ -462,7 +467,7 @@
"description" : "A label that indicates the nature of a resource, as a data serialization or format.",
"$ref" : "#/definitions/StringDatatype" },
"value" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/Base64Datatype" } },
"required" :
[ "value" ],
"additionalProperties" : false },
Expand Down Expand Up @@ -521,7 +526,12 @@
"rel" :
{ "title" : "Link Relation Type",
"description" : "Describes the type of relationship provided by the link's hypertext reference. This can be an indicator of the link's purpose.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "reference" ] } ] },
"media-type" :
{ "title" : "Media Type",
"description" : "A label that indicates the nature of a resource, as a data serialization or format.",
Expand Down Expand Up @@ -651,9 +661,21 @@
{ "algorithm" :
{ "title" : "Hash algorithm",
"description" : "The digest method by which a hash is derived.",
"$ref" : "#/definitions/StringDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/StringDatatype" },

{ "enum" :
[ "SHA-224",
"SHA-256",
"SHA-384",
"SHA-512",
"SHA3-224",
"SHA3-256",
"SHA3-384",
"SHA3-512" ] } ] },
"value" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/StringDatatype" } },
"required" :
[ "value",
"algorithm" ],
Expand Down Expand Up @@ -697,9 +719,16 @@
{ "type" :
{ "title" : "type flag",
"description" : "Indicates the type of phone number.",
"$ref" : "#/definitions/StringDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/StringDatatype" },

{ "enum" :
[ "home",
"office",
"mobile" ] } ] },
"number" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/StringDatatype" } },
"required" :
[ "number" ],
"additionalProperties" : false },
Expand All @@ -712,7 +741,13 @@
{ "type" :
{ "title" : "Address Type",
"description" : "Indicates the type of address.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "home",
"work" ] } ] },
"addr-lines" :
{ "type" : "array",
"minItems" : 1,
Expand Down Expand Up @@ -749,9 +784,14 @@
{ "scheme" :
{ "title" : "Document Identification Scheme",
"description" : "Qualifies the kind of document identifier using a URI. If the scheme is not provided the value of the element will be interpreted as a string of characters.",
"$ref" : "#/definitions/URIDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/URIDatatype" },

{ "enum" :
[ "http://www.doi.org/" ] } ] },
"identifier" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/StringDatatype" } },
"required" :
[ "identifier" ],
"additionalProperties" : false },
Expand Down Expand Up @@ -934,7 +974,13 @@
"type" :
{ "title" : "Task Type",
"description" : "The type of task.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "milestone",
"action" ] } ] },
"title" :
{ "title" : "Task Title",
"description" : "The title for this task.",
Expand Down Expand Up @@ -1278,7 +1324,16 @@
{ "type" :
{ "title" : "Subject Type",
"description" : "Indicates the type of assessment subject, such as a component, inventory, item, location, or party represented by this selection statement.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "component",
"inventory-item",
"location",
"party",
"user" ] } ] },
"description" :
{ "title" : "Include Subjects Description",
"description" : "A human-readable description of the collection of subjects being included in this assessment.",
Expand Down Expand Up @@ -1323,7 +1378,17 @@
"type" :
{ "title" : "Subject Universally Unique Identifier Reference Type",
"description" : "Used to indicate the type of object pointed to by the uuid-ref within a subject.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "component",
"inventory-item",
"location",
"party",
"user",
"resource" ] } ] },
"props" :
{ "type" : "array",
"minItems" : 1,
Expand Down Expand Up @@ -1353,7 +1418,17 @@
"type" :
{ "title" : "Subject Universally Unique Identifier Reference Type",
"description" : "Used to indicate the type of object pointed to by the uuid-ref within a subject.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "component",
"inventory-item",
"location",
"party",
"user",
"resource" ] } ] },
"title" :
{ "title" : "Subject Reference Title",
"description" : "The title or name for the referenced subject.",
Expand Down Expand Up @@ -1507,7 +1582,14 @@
"reason" :
{ "title" : "Objective Status Reason",
"description" : "The reason the objective was given it's status.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "pass",
"fail",
"other" ] } ] },
"remarks" :
{ "$ref" : "#field_oscal-metadata_remarks" } },
"required" :
Expand Down Expand Up @@ -1633,14 +1715,31 @@
"items" :
{ "title" : "Observation Method",
"description" : "Identifies how the observation was made.",
"$ref" : "#/definitions/StringDatatype" } },
"allOf" :
[
{ "$ref" : "#/definitions/StringDatatype" },

{ "enum" :
[ "EXAMINE",
"INTERVIEW",
"TEST",
"UNKNOWN" ] } ] } },
"types" :
{ "type" : "array",
"minItems" : 1,
"items" :
{ "title" : "Observation Type",
"description" : "Identifies the nature of the observation. More than one may be used to further qualify and enable filtering.",
"$ref" : "#/definitions/TokenDatatype" } },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "ssp-statement-issue",
"control-objective",
"mitigation",
"finding",
"historic" ] } ] } },
"origins" :
{ "type" : "array",
"minItems" : 1,
Expand Down Expand Up @@ -1818,13 +1917,19 @@
{ "system" :
{ "title" : "Threat Type Identification System",
"description" : "Specifies the source of the threat information.",
"$ref" : "#/definitions/URIDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/URIDatatype" },

{ "enum" :
[ "http://fedramp.gov",
"http://fedramp.gov/ns/oscal" ] } ] },
"href" :
{ "title" : "Threat Information Resource Reference",
"description" : "An optional location for the threat data, from which this ID originates.",
"$ref" : "#/definitions/URIReferenceDatatype" },
"id" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/URIDatatype" } },
"required" :
[ "id",
"system" ],
Expand Down Expand Up @@ -2060,7 +2165,17 @@
{ "title" : "Risk Status",
"description" : "Describes the status of the associated risk.",
"$id" : "#field_oscal-assessment-common_risk-status",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "open",
"investigating",
"remediating",
"deviation-requested",
"deviation-approved",
"closed" ] } ] },
"oscal-ap-oscal-assessment-common:characterization" :
{ "title" : "Characterization",
"description" : "A collection of descriptive data about the containing object from a specific origin.",
Expand Down Expand Up @@ -2094,7 +2209,19 @@
"system" :
{ "title" : "Naming System",
"description" : "Specifies the naming system under which this risk metric is organized, which allows for the same names to be used in different systems controlled by different parties. This avoids the potential of a name clash.",
"$ref" : "#/definitions/URIDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/URIDatatype" },

{ "enum" :
[ "http://fedramp.gov",
"http://fedramp.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal",
"http://csrc.nist.gov/ns/oscal/unknown",
"http://cve.mitre.org",
"http://www.first.org/cvss/v2.0",
"http://www.first.org/cvss/v3.0",
"http://www.first.org/cvss/v3.1" ] } ] },
"value" :
{ "title" : "Facet Value",
"description" : "Indicates the value of the facet.",
Expand Down Expand Up @@ -2133,7 +2260,14 @@
"lifecycle" :
{ "title" : "Remediation Intent",
"description" : "Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "recommendation",
"planned",
"completed" ] } ] },
"title" :
{ "title" : "Response Title",
"description" : "The title for this response activity.",
Expand Down Expand Up @@ -2224,7 +2358,14 @@
"name" :
{ "title" : "Part Name",
"description" : "A textual label that uniquely identifies the part's semantic type.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "asset",
"method",
"objective" ] } ] },
"ns" :
{ "title" : "Part Namespace",
"description" : "A namespace qualifying the part's name. This allows different organizations to associate distinct semantics with the same name.",
Expand Down Expand Up @@ -2454,7 +2595,25 @@
"type" :
{ "title" : "Component Type",
"description" : "A category describing the purpose of the component.",
"$ref" : "#/definitions/StringDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/StringDatatype" },

{ "enum" :
[ "this-system",
"system",
"interconnection",
"software",
"hardware",
"service",
"policy",
"physical",
"process-procedure",
"plan",
"guidance",
"standard",
"validation",
"network" ] } ] },
"title" :
{ "title" : "Component Title",
"description" : "A human readable name for the system component.",
Expand Down Expand Up @@ -2578,7 +2737,16 @@
{ "state" :
{ "title" : "Implementation State",
"description" : "Identifies the implementation status of the control or control objective.",
"$ref" : "#/definitions/TokenDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/TokenDatatype" },

{ "enum" :
[ "implemented",
"partial",
"planned",
"alternative",
"not-applicable" ] } ] },
"remarks" :
{ "$ref" : "#field_oscal-metadata_remarks" } },
"required" :
Expand Down Expand Up @@ -2758,9 +2926,17 @@
{ "identifier-type" :
{ "title" : "Identification System Type",
"description" : "Identifies the identification system from which the provided identifier was assigned.",
"$ref" : "#/definitions/URIDatatype" },
"allOf" :
[
{ "$ref" : "#/definitions/URIDatatype" },

{ "enum" :
[ "https://fedramp.gov",
"http://fedramp.gov/ns/oscal",
"https://ietf.org/rfc/rfc4122",
"http://ietf.org/rfc/rfc4122" ] } ] },
"id" :
{ "type" : "string" } },
{ "$ref" : "#/definitions/StringDatatype" } },
"required" :
[ "id" ],
"additionalProperties" : false },
Expand Down
Loading

0 comments on commit aed20d4

Please sign in to comment.