Skip to content

Commit

Permalink
Fix: action or function returns primitive value (#307)
Browse files Browse the repository at this point in the history
* Expected outcome

* Action/function returning primitive type

* 0.27.1

* Update CHANGELOG.md

* More TODOs
  • Loading branch information
ralfhandl authored Aug 1, 2024
1 parent 9d722cd commit 9ea8e2b
Show file tree
Hide file tree
Showing 10 changed files with 317 additions and 139 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Changelog

## 0.27.0
## 0.27.1 - 2024-08-01

### Fixed

- Action or function returning a primitive type returns a `value` wrapper

## 0.27.0 - 2024-07-17

### Changed

Expand Down
11 changes: 8 additions & 3 deletions examples/Products.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,14 @@
"content": {
"application/json": {
"schema": {
"type": "number",
"format": "double",
"example": 3.14
"type": "object",
"properties": {
"value": {
"type": "number",
"format": "double",
"example": 3.14
}
}
}
}
}
Expand Down
99 changes: 72 additions & 27 deletions examples/containment.openapi3.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -373,9 +378,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -547,9 +557,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -1103,9 +1118,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -1307,9 +1327,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -1983,9 +2008,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -2125,9 +2155,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -2618,9 +2653,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down Expand Up @@ -2795,9 +2835,14 @@
"content": {
"application/json": {
"schema": {
"type": "integer",
"format": "int32",
"nullable": true
"type": "object",
"properties": {
"value": {
"type": "integer",
"format": "int32",
"nullable": true
}
}
}
}
}
Expand Down
Loading

0 comments on commit 9ea8e2b

Please sign in to comment.