Repository navigation
Releases
Releases · getkin/kin-openapi
v0.153.0
What's Changed
- Add fuzz targets by @fenollp in #1373
- openapi3: set the failing schema on JSON Schema 2020-12 validation errors by @frodeaa in #1378
- openapi3filter: parse number values as decimal only by @LuisFigueroaG in #1366
- Seed fuzzing using APIs-guru corpus, covering the YAML path + fix some crashes by @fenollp in #1380
- openapi3filter: decode query, path, header and cookie params with typeless const/enum schemas by @Yi-111-a in #1368
- openapi2conv: handle some nil derefs by @reuvenharrison in #1384
- ci: a minimize budget the minimizer can finish in by @reuvenharrison in #1385
- openapi3: return a typed error for a disallowed external $ref by @reuvenharrison in #1370
- openapi3: reject a multipleOf of zero or less in Schema.Validate by @LuisFigueroaG in #1379
- openapi3filter: treat a handler that writes no status as a 200 in Validator.Middleware by @LuisFigueroaG in #1389
- deps: update oasdiff/yaml to v0.1.3 by @reuvenharrison in #1387
- openapi3: validate the pattern of a schema without type in Schema.Validate by @LuisFigueroaG in #1398
- openapi3: set maxLength in Schema.WithMaxLengthDecodedBase64 by @LuisFigueroaG in #1401
- openapi2conv: FromV3 no longer turns a binary header into a form field by @fenollp in #1403
- openapi3: internalize webhook references by @KashifManzer in #1408
- openapi2conv: keep required and format on a converted form field by @reuvenharrison in #1405
- openapi2conv: escape a base path converted to a server of its own by @reuvenharrison in #1404
- internal: add nodeindex (decoding YAML natively 1/3) by @reuvenharrison in #1382
- openapi3: UnmarshalYAML for the types (decoding YAML natively 2/3) by @reuvenharrison in #1383
- openapi3: keep component content when internalizing a ref to a file by @akasakariko in #1409
- Fuzzing harder by @fenollp in #1411
- openapi3filter: test deepObject array index limits by @connabyss in #1412
- openapi3: scope whole-file schema fragments to their document by @Aryangupta-05 in #1413
- openapi3: compare FuzzLoadFromData's validation errors by message by @fenollp in #1417
- openapi3: internalize refs under the 3.1 subschema keywords by @fenollp in #1418
- openapi3: an extension next to a $ref reaches the schema it resolves to by @reuvenharrison in #1400
- openapi3: DefaultRefNameResolver stops stripping extensions at the last dot by @Yi-111-a in #1419
- openapi3: isolate reference sibling constraints by @subotac in #1406
- openapi3: reject impossible days and offsets in the date and date-time formats by @LuisFigueroaG in #1407
- openapi3: stop InternalizeRefs prefix trimming at the filesystem root by @Yi-111-a in #1421
- openapi3: resolve refs under a header's content by @JayOfTheKeyboard in #1424
- openapi3filter: reject an empty query value instead of filling in the default by @fyousfi-ionos in #1427
- openapi3: reuse root components when internalizing refs by @ZXLyyds100 in #1425
- openapi3filter: read OpenAPI 3.1 contentMediaType data without a registered decoder by @nk-batman21 in #1388
- openapi3: validate the callbacks of an operation by @fenollp in #1429
- fuzzing: add ./fetch-fuzz-crashers.sh [--days N] by @fenollp in #1428
- openapi3: internalize the refs next to a $ref in OpenAPI 3.1 by @fenollp in #1430
- openapi3: internalize the examples of parameters and headers by @fenollp in #1431
- openapi2, openapi3: skip the json decode when data cannot be json, wrap both errors by @fenollp in #1432
- openapi3: switch the loader to the native decode (decoding YAML natively 3/3) by @reuvenharrison in #1238
- openapi3: cut the cost of building the types from the nodes by @reuvenharrison in #1433
New Contributors
- @frodeaa made their first contribution in #1378
- @KashifManzer made their first contribution in #1408
- @akasakariko made their first contribution in #1409
- @connabyss made their first contribution in #1412
- @Aryangupta-05 made their first contribution in #1413
- @subotac made their first contribution in #1406
- @JayOfTheKeyboard made their first contribution in #1424
- @fyousfi-ionos made their first contribution in #1427
- @ZXLyyds100 made their first contribution in #1425
- @nk-batman21 made their first contribution in #1388
Full Changelog: v0.152.0...v0.153.0
v0.152.0
What's Changed
- openapi2conv: push path-level body/formData parameters into operations by @Yi-111-a in #1340
- fix(openapi3): resolve transitive component refs in JSON Schema 2020-12 validation by @Yi-111-a in #1342
- openapi3: honor readOnly/writeOnly from allOf schemas in required checks by @ybai08 in #1343
- openapi3: resolve $refs of Components.Links by @fenollp in #1344
- openapi3: marshal a schema's empty type list as absent rather than null by @fenollp in #1345
- openapi3: drop the Header dump from its content/schema error by @fenollp in #1346
- openapi3gen: always propagate field tag by @phooijenga in #1347
- routers/gorillamux: return an error instead of panicking when registering routes by @fenollp in #1348
- openapi3: report $refs to null nodes as unresolved instead of panicking by @fenollp in #1349
- openapi3: validate null servers, server variables, tags and components without panicking by @fenollp in #1351
- openapi2conv: fix FromV3Parameter panics on binary schema refs and value-less schemas by @fenollp in #1352
- openapi3filter: parse integer values as base 10 by @LuisFigueroaG in #1353
- openapi3filter: decode spaceDelimited and pipeDelimited query objects by @ybai08 in #1350
- Case-sensitive usmarshalling with json/v2 by @fenollp in #1355
- openapi3filter: decode deepObject and non-exploded form object properties of urlencoded bodies by @ybai08 in #1354
- openapi3: keep $ref siblings on a schema reached through a cycle by @Yi-111-a in #1357
- tests: go around encoding/json/v2's randomness in error message by @fenollp in #1361
- tests: remove actual network calls from tests by @fenollp in #1362
- tests: run more in parallel by @fenollp in #1363
- openapi3: ignore reference siblings in OpenAPI 3.0 by @lucky798213 in #1268
- openapi3: WalkSchemas and WalkParameters stop on a callback cycle by @reuvenharrison in #1364
- openapi3filter: validate response headers described with content by @LuisFigueroaG in #1358
- openapi3filter: honor ExcludeRequestQueryParams for path item parameters by @LuisFigueroaG in #1365
- openapi3: handle fields next to $ref as OpenAPI 3.0, 3.1 and 3.2 specify by @fenollp in #1371
- changelog: fixup rebased messes by @fenollp in #1372
New Contributors
- @ybai08 made their first contribution in #1343
- @phooijenga made their first contribution in #1347
Full Changelog: v0.151.0...v0.152.0
v0.151.0
What's Changed
- openapi3: parse $ref slice indices with strconv.Atoi by @fenollp in #1324
- openapi3: remove deprecated package-global IncludeOrigin by @fenollp in #1325
- openapi3filter: decode and encode +json media types as JSON by @BogdanYarotsky in #1326
- openapi3: reject additionalOperations keys that case-vary a fixed method by @fenollp in #1328
- openapi3: recognize OpenAPI 3.2.1 by @fenollp in #1327
- openapi3filter: set body defaults only for media types with an encoder by @BogdanYarotsky in #1329
- openapi3: avoid a race around sliceUniqueItemsChecker by @fenollp in #1331
- openapi2: name the response in Responses decoding errors by @fenollp in #1332
- openapi3: compare enum values by JSON value by @fenollp in #1333
- openapi3: move the built-in schema validator to schema_3point0_validator.go by @fenollp in #1335
- modernize by @fenollp in #1334
- openapi3filter: report form-urlencoded values that fail to parse instead of dropping them by @LuisFigueroaG in #1337
- openapi3filter: follow style and explode when applying query array defaults by @LuisFigueroaG in #1336
- openapi3filter: decode anyOf/oneOf/allOf array items in path, header and cookie parameters by @LuisFigueroaG in #1338
- openapi3filter: add Options.KeepValidatedValue by @BogdanYarotsky in #1330
Full Changelog: v0.150.0...v0.151.0
v0.150.0
What's Changed
- openapi3: fix nil pointer panic in resolveExampleRef on null examples entry by @KrisKennawayDD in #1263
- openapi3: reject integers outside the int64 range for integer formats by @youdie006 in #1266
- openapi3: WalkSubtree walks a single schema; visit every subschema field by @reuvenharrison in #1267
- openapi3gen: make component schema selection deterministic by @EnriqueL8 in #1272
- openapi2conv: preserve response examples when converting to v3 by @jakezwang in #1273
- openapi3filter: trim whitespace in values of header arrays by @simonyang08 in #1261
- openapi3filter: don't duplicate empty query params when applying defaults by @TastyHeadphones in #1274
- openapi3filter: decode every values of header arrays and objects by @youdie006 in #1275
- openapi3: validate path parameter names as sets, not counts by @cpruijsen in #1276
- ci: bump to go 1.27 by @fenollp in #1277
- re-tidy up marshal error message after go1.27 by @fenollp in #1278
- openapi3filter: allow documented bodies with RejectWhenRequestBodyNotSpecified by @youssefcamao in #1280
- openapi3: preserve body example validation context by @SAY-5 in #1281
- openapi3: name an unused server URL variable as unused by @Yi-111-a in #1282
- openapi3filter: reduce buffered file body decoding allocations by @SAY-5 in #1283
- openapi2conv: keep basePath when Swagger 2.0 omits host by @Yi-111-a in #1285
- openapi3: validate security requirement scheme names by @SAY-5 in #1287
- openapi3: preserve component refs in JSON Schema 2020 validation by @lucky798213 in #1269
- openapi2: keep Responses Object extensions by @LuisFigueroaG in #1290
- Various fixes and improvements by @fenollp in #1291
- openapi3: validate recursive schemas below the root again by @fenollp in #1292
- openapi3: allow a schema to be both readOnly and writeOnly in 3.1 by @reuvenharrison in #1294
- openapi3: keep the structure of JSON Schema 2020-12 validation errors by @OlegVoytovich in #1295
- openapi3: accept unregistered and case-insensitive http security schemes by @LuisFigueroaG in #1293
- routers/gorillamux: keep path-level servers to their own path by @LuisFigueroaG in #1296
- openapi3: report readOnly/writeOnly violations as SchemaError by @fenollp in #1297
- openapi3: avoid tests leaking global format validators by @fenollp in #1298
- openapi3filter: guard body decoders registry behind a lock by @fenollp in #1299
- openapi3: save on GC when Validate()ing many-schemas documents by @fenollp in #1300
- openapi3: Validate() using the existing thread-safe regexp cache for noticeable perf improvements by @fenollp in #1301
- reduce the amount of tests that hang sequentially by @fenollp in #1302
- openapi3: no longer discard errors when Validate()ing Encoding's Headers by @fenollp in #1303
- openapi2,3: let Types decode a scalar type from YAML by @Yi-111-a in #1305
- tests: use each httptest server's own client by @fenollp in #1308
- openapi3: honor schema names in discriminator mapping when validating by @LuisFigueroaG in #1304
- Validate encodings, add a / decoder fallback (#481), and ignore case in media types by @fenollp in #1306
- ci: run Windows tests with GODEBUG=clobberfree=1 by @fenollp in #1310
- openapi3filter: reject duplicate member names in JSON bodies by @BogdanYarotsky in #1311
- openapi3: default explode to false for spaceDelimited and pipeDelimited query parameters by @LuisFigueroaG in #1315
- openapi2conv: inline referenced response headers in FromV3 by @LuisFigueroaG in #1317
- SchemaError refactoring by @fenollp in #1318
- ci: run Windows tests with asyncpreemptoff=1 by @fenollp in #1319
- Remove superfluous spaces by @fenollp in #1320
- 2-Go versions in CI + use test helpers by @fenollp in #1321
- openapi2conv: convert collectionFormat of query parameters by @LuisFigueroaG in #1322
- openapi3: default encoding explode to false for spaceDelimited and pipeDelimited by @LuisFigueroaG in #1316
- ci: cache fixtures dir /after/ checkout by @fenollp in #1323
New Contributors
- @KrisKennawayDD made their first contribution in #1263
- @youdie006 made their first contribution in #1266
- @jakezwang made their first contribution in #1273
- @simonyang08 made their first contribution in #1261
- @TastyHeadphones made their first contribution in #1274
- @cpruijsen made their first contribution in #1276
- @youssefcamao made their first contribution in #1280
- @Yi-111-a made their first contribution in #1282
- @lucky798213 made their first contribution in #1269
- @LuisFigueroaG made their first contribution in #1290
- @OlegVoytovich made their first contribution in #1295
- @BogdanYarotsky made their first contribution in #1311
Full Changelog: v0.149.0...v0.150.0
v0.149.0
What's Changed
- openapi3: accept boolean schemas by @reuvenharrison in #1258
Full Changelog: v0.148.0...v0.149.0
v0.148.0
What's Changed
- openapi3: do not forget to carry schema format validators over to OAS3.1 by @fenollp in #1250
- openapi3: add FormatOfStringForUUIDOfRFC9562 for UUID v6-v8 by @ChrisJr404 in #1251
- openapi3: compare multipleOf on exact rationals, not fixed-precision decimals by @snowyukitty in #1252
- docs: add inspect.software health badge by @Nayjest in #1253
- openapi3: validate prefixItems positionally by @reuvenharrison in #1259
New Contributors
- @ChrisJr404 made their first contribution in #1251
- @Nayjest made their first contribution in #1253
Full Changelog: v0.147.0...v0.148.0
v0.147.0
What's Changed
- openapi3filter: fix for CI by @fenollp in #1237
- openapi3: support OAS 3.2 query and additionalOperations by @mromaszewicz in #1240
- openapi3: export PathItemMethods by @reuvenharrison in #1241
- openapi3filter: append only the bytes read in ZipFileBodyDecoder by @codeAnqiang-ma in #1247
- openapi3: stop validation panicking on an uncompilable pattern by @hdimer in #1245
- openapi3filter: handle deserializing deepObject param with additionalProperties into maps by @Berserk-hub150 in #1249
New Contributors
- @codeAnqiang-ma made their first contribution in #1247
- @hdimer made their first contribution in #1245
- @Berserk-hub150 made their first contribution in #1249
Full Changelog: v0.146.0...v0.147.0
v0.146.0
What's Changed
- openapi3: keep a document's origin tree only when it can be read by @reuvenharrison in #1234
- openapi3: store field locations in a slice, not a map by @reuvenharrison in #1235
Full Changelog: v0.145.0...v0.146.0
v0.145.0
What's Changed
- openapi3: stop InternalizeRefs panicking on unresolved discriminator mappings by @snowyukitty in #1233
Full Changelog: v0.144.0...v0.145.0
v0.144.0
What's Changed
- openapi3filter: prefer non-empty value for repeated scalar query params by @sonnemusk in #1231
- some fixes to please my moulinette by @fenollp in #1232
New Contributors
- @sonnemusk made their first contribution in #1231
Full Changelog: v0.143.0...v0.144.0