Skip to content

Commit

Permalink
Support additionalProperties for inherited models/schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed May 26, 2024
1 parent bcd6bc6 commit e137630
Show file tree
Hide file tree
Showing 10 changed files with 296 additions and 76 deletions.
2 changes: 1 addition & 1 deletion packages/openapi_base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.3.2-rc.1
## 1.3.2

* Allow encoding optional parameters.

Expand Down
2 changes: 1 addition & 1 deletion packages/openapi_base/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: openapi_base
description: Open API base implementation for client/server to be used with openapi_code_builder.
version: 1.3.2-rc.1
version: 1.3.2
homepage: https://github.com/hpoul/openapi_dart/tree/master/packages/openapi_base

environment:
Expand Down
4 changes: 4 additions & 0 deletions packages/openapi_code_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2

* Support `additionalProperties` for inherited models/schemas.

## 1.3.1

* use import `riverpod/riverpod.dart` instead of `hooks_riverpod`
Expand Down
104 changes: 104 additions & 0 deletions packages/openapi_code_builder/example/lib/src/api/testapi.openapi.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,12 @@ components:
message:
type: string
description: 'The Hello World greeting ;-)'
InheritanceBase:
properties:
test1: { type: string }
additionalProperties: true
InheritanceChild:
allOf:
- $ref: "#/components/schemas/InheritanceBase"
- properties:
test2: { type: string }
Loading

0 comments on commit e137630

Please sign in to comment.