Skip to content

Commit 244dff4

Browse files
authored
internal/mapper/oas: Omit empty descriptions and false sensitive values from generated specification (#37)
Reference: #34 Reference: #35 Slight cleanup of generated specification to reduce size where the omitted specification is the same as the desired behavior.
1 parent 30fbd49 commit 244dff4

13 files changed

Lines changed: 1959 additions & 5346 deletions

internal/cmd/testdata/edgecase/generated_framework_ir.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"name": "string_prop",
3232
"string": {
3333
"computed_optional_required": "computed_optional",
34-
"description": "String inside a map!",
35-
"sensitive": false
34+
"description": "String inside a map!"
3635
}
3736
}
3837
]
@@ -152,8 +151,7 @@
152151
"name": "string_prop",
153152
"string": {
154153
"computed_optional_required": "computed_optional",
155-
"description": "String inside a set!",
156-
"sensitive": false
154+
"description": "String inside a set!"
157155
}
158156
}
159157
]
@@ -200,8 +198,7 @@
200198
"name": "string_prop",
201199
"string": {
202200
"computed_optional_required": "computed_optional",
203-
"description": "String inside a map!",
204-
"sensitive": false
201+
"description": "String inside a map!"
205202
}
206203
}
207204
]
@@ -243,8 +240,7 @@
243240
"name": "string_prop",
244241
"string": {
245242
"computed_optional_required": "computed_optional",
246-
"description": "String inside a set!",
247-
"sensitive": false
243+
"description": "String inside a set!"
248244
}
249245
}
250246
]

0 commit comments

Comments
 (0)