Comments (7)
Man you are fast :D I just tested this and can confirm it works flawlessly. Thx! Great work!
from cakephp-swagger-bake.
You can submit a PR and I can work with you on getting a release out @sergioooo
from cakephp-swagger-bake.
I have not use mysql json type in an API before. What is the expected return format? Is it a string or an object?
from cakephp-swagger-bake.
I played around with this. CakePHP will return whatever type you have in the json column, which can be either object or array. Not exactly sure how to specify that correctly given this is essentially an adhoc field.
from cakephp-swagger-bake.
@sergioooo See if #511 works in your application. You should be able to test locally by modifying your composer.json with this:
"cnizzardini/cakephp-swagger-bake": "dev-issue/507-json-sql-type",
And then running
composer update cnizzardini/cakephp-swagger-bake
from cakephp-swagger-bake.
https://github.com/cnizzardini/cakephp-swagger-bake/releases/tag/v2.5.4
from cakephp-swagger-bake.
ty np
from cakephp-swagger-bake.
Related Issues (20)
- PHP8.2 - deprecation warning when setting dynamic properties on OpenApi\Schema HOT 4
- Request DTO type Double HOT 19
- SwaggerBake config namespace is null in Configuration constructor HOT 4
- OpenApiResponse annotation doesn't work properly with schemaType: 'array' and ref. HOT 4
- OpenApiSchemaProperty(name: 'propert_name', type: 'array') not working
- Logic of Configuration class HOT 11
- Feature Query: is it possible to hide model properties? HOT 4
- Backport fix from 5.x branch
- Too few arguments to function Cake\View\Exception\MissingTemplateException::__construct(), 0 passed HOT 4
- Throw tags taking precedence over OpenApiResponse attribute
- collection generation HOT 3
- Undefined array key "securitySchemes" in Cakaphp 4.15 version HOT 2
- Undefined array key "securitySchemes" HOT 10
- Cannot make controller working HOT 3
- Prevent loading associations in ApiResponse(associations: $var) HOT 10
- Up-port 2.5.9 to 3.0.1
- [InvalidArgumentException] Invalid yml: `/config/swagger.yml
- SwaggerBake Schema and SwaggerBake Routes executes even when hotReload is false HOT 6
- OpenApiSchemaProperty support array of objects HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-swagger-bake.