Skip to content
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

No aliases for containers #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

s12v
Copy link
Collaborator

@s12v s12v commented Mar 25, 2017

Solves #58

Replaces type PetId = Option[Long] with Option[Long]. The change turned out to be not so simple and triggered chain reaction of changes in deduplicator and generators :)

Work in progress. Please check.

TODO:

  • JSON converters don't work, because some types are skipped (?)
  • Update DEFINITIONS.md
  • Tests are failing

fix parser inlude types

remove types for arr and opt

fix seq and opt

debugging tests

fix fixtures

remove debug

minor fixes

fix deduplicator

remove unnecessary fixes

update validation and form fixtures

update test data fixture

update recursive type generation

fix recursive container

update tests fixture

update fixtures

update fixtures

fix controller types

fix controllers

fix fixtures

Rename methods and add a test for TypeAnalyzer

Move Field back

change test

split replaceType

code style

Fix replaceContainerType

Fix echo test

Fxi parameters, types. Update tests

update core test results

Fix flattener, update fixtures

Fix validation

Fix enums

Remove duplicated code

Fix writable_name

added test

cleanup

fix typo

update tests

update tests
@s12v s12v self-assigned this Mar 25, 2017
@@ -11,7 +11,7 @@ package yaml {
def petType: String
}

case class Zoo(tiers: ZooTiers)
case class Zoo(tiers: Option[Seq[Pet]])
Copy link
Collaborator Author

@s12v s12v Mar 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably be Option[Seq[IPet]]

def generator(r: Reference, table: DenotationTable): String =
append(typeNameDenotation(table, r), generatorsSuffix)
def generator(r: Reference, table: DenotationTable): String = {
val name = typeNameDenotation(table, r).replace("[", "").replace("]", "")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replaceAll("""[\[\]]""", "") might be better than two calls to replace.

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.

2 participants