Skip to content

Commit

Permalink
Merge pull request #207 from CycloneDX/feat/update-schemas
Browse files Browse the repository at this point in the history
feat: Update CycloneDX Schemas to latest patch versions
  • Loading branch information
madpah authored Apr 12, 2022
2 parents dad8538 + a9c3e77 commit 2c55cb5
Show file tree
Hide file tree
Showing 26 changed files with 2,143 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

cyclonedx/schema/** linguist-language

4 changes: 2 additions & 2 deletions cyclonedx/output/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,13 @@ def _get_schema_uri(self) -> Optional[str]:
class JsonV1Dot2(Json, SchemaVersion1Dot2):

def _get_schema_uri(self) -> Optional[str]:
return 'http://cyclonedx.org/schema/bom-1.2a.schema.json'
return 'http://cyclonedx.org/schema/bom-1.2b.schema.json'


class JsonV1Dot3(Json, SchemaVersion1Dot3):

def _get_schema_uri(self) -> Optional[str]:
return 'http://cyclonedx.org/schema/bom-1.3.schema.json'
return 'http://cyclonedx.org/schema/bom-1.3a.schema.json'


class JsonV1Dot4(Json, SchemaVersion1Dot4):
Expand Down
6 changes: 3 additions & 3 deletions cyclonedx/schema/bom-1.2.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ limitations under the License.
targetNamespace="http://cyclonedx.org/schema/bom/1.2"
vc:minVersion="1.0"
vc:maxVersion="1.1"
version="1.2">
version="1.2.1">

<xs:import namespace="http://cyclonedx.org/schema/spdx" schemaLocation="spdx.xsd"/>

Expand Down Expand Up @@ -593,7 +593,7 @@ limitations under the License.

<xs:simpleType name="mimeType">
<xs:restriction base="xs:token">
<xs:pattern value="^[-+a-z0-9.]+/[-+a-z0-9.]+$"/>
<xs:pattern value="[-+a-z0-9.]+/[-+a-z0-9.]+"/>
</xs:restriction>
</xs:simpleType>

Expand Down Expand Up @@ -1415,4 +1415,4 @@ limitations under the License.
<xs:field xpath="@bom-ref"/>
</xs:unique>
</xs:element>
</xs:schema>
</xs:schema>
Loading

0 comments on commit 2c55cb5

Please sign in to comment.