Skip to content

Commit 2493ddd

Browse files
authored
Merge pull request #91 from CycloneDX/fix/codefence-languages-1
fix code fence languages
2 parents c10419e + 94c9bc5 commit 2493ddd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

api/bomexchangeapi.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ABNF rules are used from [RFC3986: Uniform Resource Identifier (URI): Generic Sy
1818

1919
These additional rules are defined:
2020

21-
```text
21+
```abnf
2222
system-url = supported-scheme ":" hier-part
2323
; a system defined URL
2424
; hier-part as defined in RFC3986
@@ -39,7 +39,7 @@ This method is for retrieving a BOM from a system.
3939

4040
The BOM retrieval URL MUST comply with this syntax:
4141

42-
```text
42+
```abnf
4343
bom-retrieval-url = system-url "?" bom-identifier-query
4444
bom-identifier-query = "bomIdentifier=" bom-identifier
4545
bom-identifier = *( pchar / "/" / "?" )
@@ -67,15 +67,15 @@ the server does not support any of the requested content types a HTTP 406 respon
6767
MUST be returned. The 406 response body MUST contain a list of server supported
6868
content types in the below format with `text/plain` content type.
6969

70-
```text
70+
```abnf
7171
media-type *(", " media-type)
7272
```
7373

7474
e.g. `application/vnd.cyclonedx+xml; version=1.4, application/vnd.cyclonedx+xml; version=1.3`
7575

7676
API servers MUST provide the correct `Content-Type` HTTP response header. For example:
7777

78-
```text
78+
```http
7979
Content-Type: application/vnd.cyclonedx+xml; version=1.4
8080
```
8181

@@ -87,7 +87,7 @@ MUST respond with the latest available version of the BOM.
8787
- Clients MUST support an optional `Authorization` header being specified.
8888
- Clients MUST provide a `Accept` HTTP request header. For example:
8989

90-
```text
90+
```http
9191
Accept: application/vnd.cyclonedx+xml; version=1.4, application/vnd.cyclonedx+xml; version=1.3
9292
```
9393

@@ -97,7 +97,7 @@ This method is for submitting a BOM to a system.
9797

9898
The BOM submission URL MUST comply with this syntax:
9999

100-
```text
100+
```abnf
101101
bom-submission-url = system-url
102102
```
103103

@@ -115,7 +115,7 @@ the server does not support the supplied content type a HTTP 415 Unsupported
115115
Media Type response MUST be returned. The 415 response body MUST contain a list
116116
of server supported content types in the below format with `text/plain` content type.
117117

118-
```
118+
```abnf
119119
media-type *(", " media-type)
120120
```
121121

@@ -130,6 +130,6 @@ Clients MUST support an optional `Authorization` header being specified.
130130

131131
Clients MUST provide the correct `Content-Type` HTTP request header. For example:
132132

133-
```text
133+
```http
134134
Content-Type: application/vnd.cyclonedx+xml; version=1.4
135-
```
135+
```

discovery/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ barcode and one with the vendor's product number.
5252

5353
### TEI syntax
5454

55-
```
55+
```text
5656
urn:tei:<type>:<domain-name>:<unique-identifier>
5757
````
5858
@@ -147,13 +147,13 @@ These point to URIs for the transparency exchange data.
147147
If there are no records, try to resolve the name (using AAAA and A DNS records) and
148148
append the /.well-known/tei prefix
149149

150-
```
150+
```dns
151151
_tei._tcp.tex.example.com. 3600 IN URI 10 1 “https://www.example.com/transparency“
152152
```
153153

154154
Example response of DNS query including multiple URIs with a priority
155155

156-
```
156+
```dns
157157
_tei._tcp.tex.example.com. 3600 IN URI 10 1 “https://www.example.com/transparency“
158158
_tei._tcp.tex.example.com. 3600 IN URI 20 1 “https://backup.example.com/transparency“
159159
_tei._tcp.tex.example.com. 3600 IN URI 30 1 “https://thirdparty.example.org/example.com/transparency“

0 commit comments

Comments
 (0)