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

Fixing multiple oneOfs #263

Merged
merged 4 commits into from Jun 20, 2018
Merged

Fixing multiple oneOfs #263

merged 4 commits into from Jun 20, 2018

Conversation

sergey-shandar
Copy link
Contributor

Issue #248

@vladbarosan
Copy link

also with this , fixes #234 .

entity = {}
entity.oneOf = [savedEntity, { type: "null" }]
entity = {
anyOf: [savedEntity, { type: "null" }]

Choose a reason for hiding this comment

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

anyOf [](start = 6, length = 5)

is this the only place where we used to make a oneOf between the type and null ?

Copy link
Contributor Author

@sergey-shandar sergey-shandar Jun 19, 2018

Choose a reason for hiding this comment

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

The one that I'm aware of that causes problems. It looks like other cases where we use oneOf should be good.

Choose a reason for hiding this comment

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

also I was wondering, are we ready to enable tslint on the project


In reply to: 196611051 [](ancestors = 196611051)

Copy link
Contributor Author

@sergey-shandar sergey-shandar Jun 20, 2018

Choose a reason for hiding this comment

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

@vladbarosan tslint is enabled already

"tslint": "tslint ./*.ts ./lib/**/*.ts ./test/**/*.ts ./types/**/*.ts",
"test": "npm run tslint && nyc mocha ./test/**/*.ts -r ts-node/register -t 10000",

Copy link

@vladbarosan vladbarosan left a comment

Choose a reason for hiding this comment

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

:shipit:

@sergey-shandar sergey-shandar merged commit 567c408 into Azure:master Jun 20, 2018
@sergey-shandar sergey-shandar deleted the sergey-nullref branch June 20, 2018 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants