Upgrade amoc_rest with new openapi gens and enforce OTP27#5
Merged
JanuszJakubiec merged 1 commit intomainfrom Nov 27, 2024
Merged
Upgrade amoc_rest with new openapi gens and enforce OTP27#5JanuszJakubiec merged 1 commit intomainfrom
JanuszJakubiec merged 1 commit intomainfrom
Conversation
a6c92c2 to
e1ebdaf
Compare
5 tasks
e1ebdaf to
cde9151
Compare
NelsonVides
commented
Nov 25, 2024
Comment on lines
+16
to
+17
| get_documentation(Scenario) -> | ||
| case code:get_doc(Scenario) of |
Contributor
Author
There was a problem hiding this comment.
This is one of my favourite things of upgrading to OTP27, docs are embedded on the module now.
cde9151 to
5c9d8a4
Compare
5c9d8a4 to
95a4a10
Compare
test/amoc_api_helper.erl
Outdated
| {integer(), json()}. | ||
| request(BaseUrl, Path, Method) -> request(BaseUrl, Path, Method, <<"">>). | ||
| request(BaseUrl, Path, Method) -> | ||
| request(BaseUrl, Path, Method, <<"">>). |
Contributor
There was a problem hiding this comment.
Suggested change
| request(BaseUrl, Path, Method, <<"">>). | |
| request(BaseUrl, Path, Method, <<>>). |
test/amoc_api_helper.erl
Outdated
| {integer(), json()}. | ||
| patch(Path) -> patch(get_url(), Path, <<"">>). | ||
| patch(Path) -> | ||
| patch(get_url(), Path, <<"">>). |
Contributor
There was a problem hiding this comment.
Suggested change
| patch(get_url(), Path, <<"">>). | |
| patch(get_url(), Path, <<>>). |
95a4a10 to
1062fcd
Compare
1062fcd to
c6f6fe0
Compare
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.
To merge after esl/amoc_rest#11
After integrating the new generated code, there's a couple of differences, mostly as we enforce OTP27:
json, we don't need anyjsx/jiffy/other, and it's also the fastest. The generated code also allow us to distinguish between HTTP calls withcontent-type: application/jsonvs others, see the pattern-matching clauses onaccept_callback/4.code:get_doc/1, documentation chunks are now embedded in the module and can be extracted and read at runtime, hence we can rid ofdocsh.