← Back to team overview

ladon-dev-team team mailing list archive

[Question #284493]: How to set minOccurs and maxOccurs parameters during type definition?


New question #284493 on ladon:

I want to do something like this:

str_nullable = {
    'type': PORTABLE_STRING,
    'nullable': True,
    'minOccurs': 1

class Auth(LadonType):
    login = str_nullable
    password = str_nullable

but in fact setting minOccurs parameter has no affect: it's always `minOccurs`= 0 when i set `nullable` = True. Can I do this somehow? 

You received this question notification because your team Ladon
Developer is an answer contact for ladon.