forked from usnistgov/metaschema
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Many testing files for usnistgov#39 Metaschema refactor
- Loading branch information
1 parent
57b0267
commit fea09b9
Showing
46 changed files
with
13,917 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,257 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="20.1"> | ||
<meta> | ||
<filters directoryPatterns="" filePatterns="metaschema-testing.xpr" positiveFilePatterns="" showHiddenFiles="false"/> | ||
<options> | ||
<serialized version="20.1" xml:space="preserve"> | ||
<serializableOrderedMap> | ||
<entry> | ||
<String>scenario.associations</String> | ||
<scenarioAssociation-array> | ||
<scenarioAssociation> | ||
<field name="url"> | ||
<String>test-suite/schema-generation/collapsible/collapsible_metaschema.xml</String> | ||
</field> | ||
<field name="scenarioIds"> | ||
<list> | ||
<String>COMPOSE metaschema</String> | ||
</list> | ||
</field> | ||
<field name="scenarioTypes"> | ||
<list> | ||
<String>XSL</String> | ||
</list> | ||
</field> | ||
</scenarioAssociation> | ||
<scenarioAssociation> | ||
<field name="url"> | ||
<String>test-suite/schema-generation/flag/flag-basic_metaschema.xml</String> | ||
</field> | ||
<field name="scenarioIds"> | ||
<list> | ||
<String>COMPOSE metaschema</String> | ||
</list> | ||
</field> | ||
<field name="scenarioTypes"> | ||
<list> | ||
<String>XSL</String> | ||
</list> | ||
</field> | ||
</scenarioAssociation> | ||
<scenarioAssociation> | ||
<field name="url"> | ||
<String>toolchains/oscal-m2/lib/metaschema.xsd</String> | ||
</field> | ||
<field name="scenarioIds"> | ||
<list> | ||
<String>COMPOSE metaschema</String> | ||
</list> | ||
</field> | ||
<field name="scenarioTypes"> | ||
<list> | ||
<String>XSL</String> | ||
</list> | ||
</field> | ||
</scenarioAssociation> | ||
<scenarioAssociation> | ||
<field name="url"> | ||
<String>specification/read-schema.xsl</String> | ||
</field> | ||
<field name="scenarioIds"> | ||
<list> | ||
<String>Run on metaschema.xsd</String> | ||
</list> | ||
</field> | ||
<field name="scenarioTypes"> | ||
<list> | ||
<String>XML</String> | ||
</list> | ||
</field> | ||
</scenarioAssociation> | ||
</scenarioAssociation-array> | ||
</entry> | ||
<entry> | ||
<String>scenarios</String> | ||
<scenario-array> | ||
<scenario> | ||
<field name="advancedOptionsMap"> | ||
<null/> | ||
</field> | ||
<field name="name"> | ||
<String>COMPOSE metaschema</String> | ||
</field> | ||
<field name="baseURL"> | ||
<String></String> | ||
</field> | ||
<field name="footerURL"> | ||
<String></String> | ||
</field> | ||
<field name="fOPMethod"> | ||
<String>pdf</String> | ||
</field> | ||
<field name="fOProcessorName"> | ||
<String>Apache FOP</String> | ||
</field> | ||
<field name="headerURL"> | ||
<String></String> | ||
</field> | ||
<field name="inputXSLURL"> | ||
<String>${pdu}/toolchains/oscal-m2/lib/metaschema-compose.xsl</String> | ||
</field> | ||
<field name="inputXMLURL"> | ||
<String>${currentFileURL}</String> | ||
</field> | ||
<field name="defaultScenario"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="isFOPPerforming"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="type"> | ||
<String>XSL</String> | ||
</field> | ||
<field name="saveAs"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="openInBrowser"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="outputFile"> | ||
<File>${cfn}_COMPOSED.xml</File> | ||
</field> | ||
<field name="outputResource"> | ||
<String>${cfn}_COMPOSED.xml</String> | ||
</field> | ||
<field name="openOtherLocationInBrowser"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="locationToOpenInBrowserURL"> | ||
<null/> | ||
</field> | ||
<field name="openInEditor"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="showInHTMLPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInXMLPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInSVGPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInResultSetPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="useXSLTInput"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="xsltParams"> | ||
<list/> | ||
</field> | ||
<field name="cascadingStylesheets"> | ||
<String-array/> | ||
</field> | ||
<field name="xslTransformer"> | ||
<String>Saxon-PE</String> | ||
</field> | ||
<field name="extensionURLs"> | ||
<String-array/> | ||
</field> | ||
</scenario> | ||
<scenario> | ||
<field name="advancedOptionsMap"> | ||
<null/> | ||
</field> | ||
<field name="name"> | ||
<String>Run on metaschema.xsd</String> | ||
</field> | ||
<field name="baseURL"> | ||
<String></String> | ||
</field> | ||
<field name="footerURL"> | ||
<String></String> | ||
</field> | ||
<field name="fOPMethod"> | ||
<String>pdf</String> | ||
</field> | ||
<field name="fOProcessorName"> | ||
<String>Apache FOP</String> | ||
</field> | ||
<field name="headerURL"> | ||
<String></String> | ||
</field> | ||
<field name="inputXSLURL"> | ||
<String>${currentFileURL}</String> | ||
</field> | ||
<field name="inputXMLURL"> | ||
<String>${pdu}/toolchains/oscal-m2/lib/metaschema.xsd</String> | ||
</field> | ||
<field name="defaultScenario"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="isFOPPerforming"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="type"> | ||
<String>XML</String> | ||
</field> | ||
<field name="saveAs"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="openInBrowser"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="outputFile"> | ||
<null/> | ||
</field> | ||
<field name="outputResource"> | ||
<null/> | ||
</field> | ||
<field name="openOtherLocationInBrowser"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="locationToOpenInBrowserURL"> | ||
<null/> | ||
</field> | ||
<field name="openInEditor"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInHTMLPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInXMLPane"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="showInSVGPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="showInResultSetPane"> | ||
<Boolean>false</Boolean> | ||
</field> | ||
<field name="useXSLTInput"> | ||
<Boolean>true</Boolean> | ||
</field> | ||
<field name="xsltParams"> | ||
<list/> | ||
</field> | ||
<field name="cascadingStylesheets"> | ||
<String-array/> | ||
</field> | ||
<field name="xslTransformer"> | ||
<String>Saxon-HE</String> | ||
</field> | ||
<field name="extensionURLs"> | ||
<String-array/> | ||
</field> | ||
</scenario> | ||
</scenario-array> | ||
</entry> | ||
</serializableOrderedMap> | ||
</serialized> | ||
</options> | ||
</meta> | ||
<projectTree name="metaschema-testing.xpr"> | ||
<folder path="."/> | ||
</projectTree> | ||
</project> |
108 changes: 108 additions & 0 deletions
108
test-suite/broken/allowed-values-confusion-metaschema_JSON-SCHEMA.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
|
||
{ "$schema" : "http://json-schema.org/draft-07/schema#", | ||
"$id" : "http://csrc.nist.gov/metaschema/ns/test-schema.json", | ||
"$comment" : "Test Metaschema: JSON Schema", | ||
"type" : "object", | ||
"definitions" : | ||
{ "item" : | ||
{ "title" : "Item", | ||
"description" : "A member of a sequence", | ||
"type" : "object", | ||
"properties" : | ||
{ "type" : | ||
{ "title" : "Item type", | ||
"description" : "Characterizes the type of item", | ||
"type" : "string" }, | ||
"id" : | ||
{ "type" : "string" }, | ||
"STRVALUE" : | ||
{ "type" : "string" } }, | ||
"required" : | ||
[ "STRVALUE" ], | ||
"additionalProperties" : false, | ||
"enum" : | ||
[ "A", | ||
"B", | ||
"C" ] }, | ||
"SEQUENCES" : | ||
{ "title" : "Number sequences", | ||
"description" : "Several number sequences, in sequence", | ||
"type" : "object", | ||
"properties" : | ||
{ "sequences" : | ||
{ "anyOf" : | ||
[ | ||
{ "$ref" : "#/definitions/sequence" }, | ||
|
||
{ "type" : "array", | ||
"minItems" : 1, | ||
"items" : | ||
{ "$ref" : "#/definitions/sequence" } } ] } }, | ||
"additionalProperties" : false }, | ||
"sequence" : | ||
{ "title" : "Sequence", | ||
"description" : "A series of items", | ||
"type" : "object", | ||
"properties" : | ||
{ "items" : | ||
{ "anyOf" : | ||
[ | ||
{ "$ref" : "#/definitions/item" }, | ||
|
||
{ "type" : "array", | ||
"minItems" : 1, | ||
"items" : | ||
{ "$ref" : "#/definitions/item" } } ] }, | ||
"subsequences" : | ||
{ "anyOf" : | ||
[ | ||
{ "$ref" : "#/definitions/subsequence" }, | ||
|
||
{ "type" : "array", | ||
"minItems" : 1, | ||
"items" : | ||
{ "$ref" : "#/definitions/subsequence" } } ] } }, | ||
"additionalProperties" : false }, | ||
"subsequence" : | ||
{ "title" : "Subsequence", | ||
"description" : "More sequences", | ||
"type" : "object", | ||
"properties" : | ||
{ "items" : | ||
{ "anyOf" : | ||
[ | ||
{ "item" : | ||
{ "title" : "Subsequence item", | ||
"description" : "An item in a sequence in a sequence", | ||
"type" : "string", | ||
"enum" : | ||
[ "red", | ||
"blue", | ||
"green" ] } }, | ||
|
||
{ "type" : "array", | ||
"minItems" : 1, | ||
"items" : | ||
{ "item" : | ||
{ "title" : "Subsequence item", | ||
"description" : "An item in a sequence in a sequence", | ||
"type" : "string", | ||
"enum" : | ||
[ "red", | ||
"blue", | ||
"green" ] } } } ] }, | ||
"subsequences" : | ||
{ "anyOf" : | ||
[ | ||
{ "$ref" : "#/definitions/subsequence" }, | ||
|
||
{ "type" : "array", | ||
"minItems" : 1, | ||
"items" : | ||
{ "$ref" : "#/definitions/subsequence" } } ] } }, | ||
"additionalProperties" : false } }, | ||
"properties" : | ||
{ "SEQUENCES" : | ||
{ "$ref" : "#/definitions/SEQUENCES" } }, | ||
"required" : | ||
[ "SEQUENCES" ] } |
Oops, something went wrong.