10000 Merge pull request #4 from core-api/validate-false · adamchainz/python-raml-codec@870a3f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 870a3f1

Browse files
authored
Merge pull request core-api#4 from core-api/validate-false
Use 'validate=False' for more robust parsing.
2 parents 9c66da6 + 8004b13 commit 870a3f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

raml_codec/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import yaml
1111

1212

13-
__version__ = "0.1.0"
13+
__version__ = "0.1.1"
1414

1515

1616
class RAMLLoader(RAMLFileLoader):
@@ -82,6 +82,7 @@ def decode(self, bytestring, **options):
8282
loader = RAMLLoader(base_url)
8383
data = loader.load(bytestring)
8484
config = setup_config()
85+
config['validate'] = False
8586
raml = parse_raml(data, config)
8687

8788
content = {}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_package_data(package):
5454
setup(
5555
name='raml-codec',
5656
version=version,
57-
url='http://github.com/core-api/raml-codec/',
57+
url='http://github.com/core-api/python-raml-codec/',
5858
license='BSD',
5959
description='A RAML codec for Core API.',
6060
author='Tom Christie',

0 commit comments

Comments
 (0)
0