Closed lelit closed 8 years ago
Thanks @lelit - are you able to share your RAML file by chance?
Sure, here a minimal RAML that exhibits the problem (inline, as GH did not allow me to attach it... let me know if that's a problem):
#%RAML 0.8
---
title: Test
baseUri: http://customer.example.com/
traits:
- orderable:
queryParameters:
sort:
description: |
Order the collection by arbitrary field(s).
The value must be a JSON array of dictionaries like
[{"property": "fieldName", "direction": "dir"}]
where "dir" may be either "ASC", or "DESC.
example: |
sort=<<example>>
- filterable:
queryParameters:
filters:
description: |
Filter the collection with the specified constraints.
The value must be a JSON array of dictionaries like
[{"property": "fieldName", "operator": "op", "value": "someValue"}]
where "operator" may be one of: =, ~, ~=, >=, >, <=, <, <>.
example: |
filters=<<example>>
- pageable:
queryParameters:
start:
description: Skip over a number of elements by specifying an offset value for the query
type: integer
required: false
example: start=20
default: 0
limit:
description: Limit the number of elements on the response
type: integer
required: false
example: limit=80
default: null
/:
get:
description: Get a collection
is:
- orderable:
example: "[{\"property\":\"description_en\",\"direction\":\"DESC\"}]"
- filterable:
example: "[{\"property\":\"description_en\",\"operator\":\"=\",\"value\": \"Dynamite\"}]"
- pageable
Should be better now :) will include this in the v0.1.9 release (not for another week or two) but it's in master. Thanks so much!
Line 199 of validate.py is not compatible with Python 3:
Python 3.4 raises the same error.