Skip to content

Conversation

@paul-english
Copy link
Contributor

@paul-english paul-english commented Mar 16, 2017

…me formatting

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

(details of the change, additional tests that have been done, reference to the issue for tracking, etc)

@paul-english
Copy link
Contributor Author

paul-english commented Mar 16, 2017

I'm not sure why the travis test fails, maybe some upstream issue.

One thing on this PR, I re-ran bin/akka-scala-petstore.sh and it reverted pom.xml changes found in 2da2a26 (Note, I didn't add that file to this PR)

@wing328 Can you comment on what that pom.xml change was, and if we need to update the shell script or something else for this.

@paul-english
Copy link
Contributor Author

Also there's no coverage for the specific case we saw that required the override for toModelName. We have a subclass typing patter where we end up with definitions of the form Customer.Id, when the period is in there it generated an invalid case class in scala code, so by running the model name through the format identifier method it cleans that period out.

@ePaul
Copy link
Contributor

ePaul commented Mar 17, 2017

See #5094 for the pom update issue.

@wing328 wing328 added this to the v2.2.3 milestone Mar 21, 2017
@wing328 wing328 changed the title Ensure identifiers get sanitized; Ensure model names also have the sa… Ensure identifiers get sanitized & model names have the same formatting Mar 21, 2017
@wing328
Copy link
Contributor

wing328 commented Mar 21, 2017

@log0ymxm thanks for the PR, which looks good to me.

Eventually, we want to consolidate scala, async-scala and akka-scala into a single Scala API client generator. @clasnake has begun the effort with #5115. Please review the change when you've time.

@wing328 wing328 merged commit 59fe50d into swagger-api:master Mar 21, 2017
spr3nk3ls pushed a commit to spr3nk3ls/swagger-codegen that referenced this pull request Mar 28, 2017
@wing328 wing328 changed the title Ensure identifiers get sanitized & model names have the same formatting [Scala][Akka] Ensure identifiers get sanitized & model names have the same formatting Apr 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants