← Back to team overview

ladon-dev-team team mailing list archive

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


Question #284493 on ladon changed:

Description changed to:
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 effect: 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.