Nothing Special   »   [go: up one dir, main page]

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

Add ResolveVisitor functionality #10

Merged
merged 28 commits into from
May 18, 2017
Merged

Conversation

jasonwalsh
Copy link
Collaborator

Verification steps:

nosetests -sv

rightlag added 25 commits May 15, 2017 09:54
Include additional keywords (e.g. `const`, `examples`) and update
keywords class attribute.
Rename TypeRegistry to Creator and Object to Record.
Include `AllOf` and `Definitions` classes.
Ensure `$ref` value is valid against URI regular expression.
Ensure `Union` extends `Primitive` and update Union.fromJson method.
Rename primitives.Object to primitives.Record.
@coveralls
Copy link
coveralls commented May 15, 2017

Coverage Status

Coverage decreased (-16.8%) to 64.497% when pulling f0468ea on feature/resolve-visitor into be5e575 on master.

@coveralls
Copy link
coveralls commented May 15, 2017

Coverage Status

Coverage decreased (-16.8%) to 64.497% when pulling 2edc3c4 on feature/resolve-visitor into be5e575 on master.

Keywords `minimum` and `maximum` SHOULD NOT default to zero. Update
unit tests to account for changes.
@coveralls
Copy link
coveralls commented May 15, 2017

Coverage Status

Coverage decreased (-7.6%) to 73.684% when pulling c6f08a0 on feature/resolve-visitor into be5e575 on master.

@coveralls
Copy link
coveralls commented May 15, 2017

Coverage Status

Coverage decreased (-7.7%) to 73.547% when pulling 31ff8fe on feature/resolve-visitor into be5e575 on master.

def fromJson(cls, instance, referrant=None):
return cls(**instance)
value = kwargs['$ref']
expression = r'^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?' # noqa: E501
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

re.compile

host=specification.get('host'), basePath=specification.get('basePath'),
paths=paths, definitions=definitions)
@staticmethod
def parse(filename):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

def parse(instance)

@jasonwalsh jasonwalsh merged commit d5cdae6 into master May 18, 2017
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