Closed ghost closed 11 years ago
You need to pass a colander schema, not a cornice schema. CorniceSchema is just a way to deal with it internally.
what's wrong with the first approach you had?
@sudomake: You want to add location='querystring'
to your schema, right?
class MyColanderSchema(colander.MappingSchema):
my_test_value = colander.SchemaNode(
colander.String(),
location='querystring',
title='my_test_value',
description='A simple test.',
)
""" Cornice services. """
http://0.0.0.0:6543/?my_test_value=will_not_work
What am I doing wrong please?