Skip to content

Commit 6ae349e

Browse files
Merge pull request #33 from spectreconsole/feature/GH-28
GH-28: Make `name` property in License Object optional
2 parents c630ad4 + 2d84aa3 commit 6ae349e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

draft.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ This specification is heavily influenced by the [OpenAPI specification][openapi]
3636
| 2025-07-15 | Patrik Svensson | Added `interactive` to root command and commands |
3737
| 2025-07-16 | Patrik Svensson | Added [Metadata Object](#metadata-object) |
3838
| 2025-07-16 | Patrik Svensson | Changed maps to arrays |
39+
| 2025-07-18 | Patrik Svensson | `name` property in [License Object](#license-object) is no longer required |
3940

4041
## Definitions
4142

@@ -133,7 +134,7 @@ This is the root object of the OpenCLI Description.
133134

134135
| Field Name | Type | Description |
135136
|------------|:----:|-------------|
136-
| name | `string` | **REQUIRED** The license name |
137+
| name | `string` | The license name |
137138
| identifier | `string` | The [SPDX](https://spdx.org/licenses/) license identifier |
138139

139140
#### Command Object

schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,7 @@
347347
"type": "string",
348348
"description": "The SPDX license identifier"
349349
}
350-
},
351-
"required": [
352-
"name"
353-
]
350+
}
354351
},
355352
"Arity": {
356353
"type": "object",

typespec/main.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ model Contact {
7676

7777
model License {
7878
@doc("The license name")
79-
name: string;
79+
name?: string;
8080

8181
@doc("The SPDX license identifier")
8282
identifier?: string;

0 commit comments

Comments
 (0)