File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ import "@typespec/openapi3" ;
2
+
3
+ using TypeSpec .OpenAPI ;
4
+
1
5
/**
2
6
* ULID (Universally Unique Lexicographically Sortable Identifier).
3
7
*/
@@ -29,10 +33,12 @@ scalar Key extends string;
29
33
scalar ULIDOrKey extends string ;
30
34
31
35
// NOTE (andras): key format enforcement isn't supported by TypeSpec (patternProperties). See: https://github.com/microsoft/typespec/discussions/1626
36
+ // TODO: decide if we want to use the generated Metadata type instead and update code to use it
32
37
/**
33
38
* Set of key-value pairs.
34
39
* Metadata can be used to store additional information about a resource.
35
40
*/
41
+ @ extension ("x-go-type" , "map[string]string" )
36
42
@ example (#{ externalId : "019142cc-a016-796a-8113-1a942fecd26d" })
37
43
model Metadata {
38
44
... Record <string >;
You can’t perform that action at this time.
0 commit comments