MySQL Schema Generator#1055
Merged
wing328 merged 5 commits intoOpenAPITools:masterfrom Oct 1, 2018
Merged
Conversation
b584c9e to
c93b487
Compare
Contributor
Author
|
Now we faced Animal:
type: object
discriminator: className
required:
- className
properties:
className:
type: string
color:
type: string
default: 'red'will produce: CREATE TABLE IF NOT EXISTS `Animal` (
`className` TEXT NOT NULL,
`color` TEXT
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
c3911e0 to
e827910
Compare
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
wing328
reviewed
Sep 25, 2018
Member
|
About the CI failures, it seems like some Java docstrings have minor issues: To repeat that locally, please try |
e827910 to
ca7d384
Compare
ca7d384 to
bd82f89
Compare
Member
|
@ybelenko thanks again for the new generator, which is included in the v3.3.0 minor release: https://twitter.com/oas_generator/status/1046941449609068544 |
A-Joshi
pushed a commit
to ihsmarkitoss/openapi-generator
that referenced
this pull request
Feb 27, 2019
* [Mysql Schema] Add new generator * [Mysql Schema] Fix default definition * [Mysql Schema] Add defaultDatabaseName option * [Mysql Schema] Add jsonDataTypeEnabled option * [Mysql Schema] Add samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,3.3.x,4.0.x. Default:master.Description of the PR
I'm happy to finally represent first version of MySQL schema generator. 🎆
Current version is beta, but I need feedback from community asap.
Related discussion about data mapping #955
How to refresh samples
What else I gonna do
defaultDatabaseNamecli optionmysqlSchemaColumnDataTypeDefinition)DEFAULTstatements generationjsonDataTypeEnabledwhichtrueby default. When it's disabled, allobjectandarraydata maps toTEXTdata typecc @OpenAPITools/generator-core-team
@wing328 If you think it's appropriate to notify somebody beside core team members to this thread, please do that in a next comment