Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions js/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,17 @@ loadRespecWithConfiguration({
specStatus: "WV",
specType: "ST",
pluralize: true,
spellcheck: false,

preProcess: [initializeHighlightJSYaml, fetchLinterConfiguration],
postProcess: [generateMermaidFigures, highlightLinterCode, (config, document, utils) => processRuleBlocks(config, document, utils, linterConfiguration)],
preProcess: [
initializeHighlightJSYaml,
fetchLinterConfiguration,
],
postProcess: [
generateMermaidFigures,
highlightLinterCode,
(config, document, utils) => processRuleBlocks(config, document, utils, linterConfiguration),
],

localBiblio: {
"ADR-encryption": {
Expand Down
4 changes: 2 additions & 2 deletions linter/testcases/date-time/expected-output.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

/testcases/date-time/openapi.json
94:55 error nlgov:date-time-ensure-timezone Use date-time format which includes a timezone paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.date-time-local.format
94:55 error nlgov:date-time-ensure-timezone Use date-time format which includes a time zone paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.date-time-local.format
98:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.date.format
102:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.datum.format
106:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.geboorteDatum.format
110:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.birthDate.format
114:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.expiration_date.format
118:55 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.expiration_Date.format
122:55 error nlgov:time-without-timezone Use time-local format without a timezone paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.timestamp.format
122:55 error nlgov:time-without-timezone Use time-local format without a time zone paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.timestamp.format
124:61 error nlgov:specify-format-for-date-and-time Any date field must set 'format' to 'date' paths./resources-with-time-incorrect.get.responses[200].content.application/json.schema.properties.missingFormatDate
218:27 error nlgov:use-date-instead-of-datetime Field represents a date and therefore must set 'format' to 'date' components.schemas.LocalDateTimeIncorrect.format

Expand Down
4 changes: 2 additions & 2 deletions media/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ rules:
nlgov:date-time-ensure-timezone:
severity: error
given: $..properties[*].format
message: "Use date-time format which includes a timezone"
message: "Use date-time format which includes a time zone"
then:
function: pattern
functionOptions:
Expand All @@ -241,7 +241,7 @@ rules:
nlgov:time-without-timezone:
severity: error
given: $..properties[*].format
message: "Use time-local format without a timezone"
message: "Use time-local format without a time zone"
then:
function: pattern
functionOptions:
Expand Down
2 changes: 1 addition & 1 deletion publishers.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# publishers.yml This is a list of organizations and repositories to crawl.
# publishers.yml This is a list of organisations and repositories to crawl.

---

Expand Down
Loading
Loading