Skip to content

Commit b17ad8b

Browse files
CCM-15019: Setting mandatory fields and dataschemaversion to 1.0.0
1 parent f5c7d36 commit b17ad8b

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/cloudevents/domains/digital-letters/2025-10-draft/digital-letters-profile.schema.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,13 @@ properties:
2323
- data
2424
dataschemaversion:
2525
type: string
26-
const: "1.0"
26+
const: "1.0.0"
2727
description: Data Schema version (fixed to 1.0).
2828
examples:
29-
- "1.0"
29+
- "1.0.0"
3030
datacontenttype:
3131
type: string
3232
const: "application/json"
3333
description: Data Content type (fixed to application/json).
3434
examples:
3535
- "application/json"
36-
required:
37-
- dataschema
38-
- dataschemaversion
39-
- datacontenttype

src/cloudevents/tools/generator/example-generator/example-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class ExampleGenerator {
169169
}
170170
// 5. Notify events are data plane and dataschemaversion
171171
example.plane = "data";
172-
example.dataschemaversion = "1.0";
172+
example.dataschemaversion = "1.0.0";
173173

174174
// 6. Generate subject from the most specific pattern
175175
const subjectSchema = dereferencedSchema.properties?.subject;

0 commit comments

Comments
 (0)