-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#234 support for references for arrays #238
Conversation
Pardon my whitespace changes. It seems that the file was badly formatted and my editor reformatted it even before i started making changes. I kept the changes since it looked like the changes were for the betterment... but open to suggestions. |
@243826 Thanks for the contribution. No worry about the whitespaces. As we are not using array references, I am wondering if you could add one or more unit tests to demo how to use it and these test can greatly help us to understand your code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @243826 : my current client has array references in a number of OpenAPI specs.
Could you please add a test which employs a (simple) OpenAPI spec showcasing arrays?
Thank you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@243826 Really an awesome solution, I learned a lot from it. Thank you! Also, there are some suggestions I mentioned in the review.
light-rest-4j/src/main/java/com/networknt/codegen/rest/OpenApiGenerator.java
Outdated
Show resolved
Hide resolved
light-rest-4j/src/main/java/com/networknt/codegen/rest/OpenApiGenerator.java
Show resolved
Hide resolved
yes, I think I should... I was just being lazy:
|
Is it possible for you to share a stripped down version of a openapi3 specification for your client's API? It will save me valuable time to think of an example which most likely will be madeup and meaningless. |
@243826 We don't have end-to-end verification for the codegen at the moment in light-codegen; however, we have a lot of examples in light-example-4j and specification/config in model-config repo. Each time we do a build, we are testing some of the examples end-to-end in light-bot. We can easily expand that to generate some example applications from specifications and start the server to test against the example response. I have opened an issue in light-bot. networknt/light-bot#61 |
…propriately even when they are deep
I have added a unit test which validates the affected code generation. I also addressed the enum side of the story. Please review and let me know. Also just to share with you guys - I am re-architecting a large code base and had laid out principles as to what the new architecture should support. I was mainly looking for a fast microservices framework when I came across light-4j and was delighted to see that many of my principles match with how you guys laid out on your site. Keep up the good work. Let me know if you would like me to review new ideas. Since I am trying to use your framework, I am sure to come by to review the progress of this product. |
@243826 Welcome to the team. I have sent you an invite to add to the contributor list. Please feel free to join any discussions and review any issues. Once the team members know which repo or area you are interested in, you will be added to the reviewer list by them :) |
@ddobrin I have addressed your change request as well. Could you validate it and/or approve the pull request so that it can be merged? Thanks. |
@stevehu Could you please look into merging this ASAP? |
what's the significance of develop branch vs master branch? |
We release from the develop branch and then merge the develop to master. So that master branch is in sync with our latest release. |
[image: MailTag]does it make sense for me to then develop against the
develop branch instead of the master branch?
…On Tue, Mar 5, 2019 at 3:09 PM Steve Hu ***@***.***> wrote:
We release from the develop branch and then merge the develop to master.
So that master branch is in sync with our latest release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#238 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACk9w1tlLF5Qg-Fu_u4QwLy9nY4v9sz0ks5vTvkrgaJpZM4bVp3Y>
.
|
Yes. All developers should work against the develop branch. Once the PR is submitted, we need to have two reviewers to approve the PR before merging into the develop branch for the next release. This is the contribution document. https://doc.networknt.com/contribute/development/ |
Fixed Issue #234 by resolving the unresolved references.