How to set minOccurs and maxOccurs parameters during type definition?

Asked by Alexey Ustinnikov

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?

Question information

Language:
English Edit question
Status:
Solved
For:
ladon Edit question
Assignee:
No assignee Edit question
Solved by:
jsgaarde
Solved:
Last query:
Last reply:
Revision history for this message
Best jsgaarde (jakob-simon-gaarde) said :
#1

There has not been made support for minOccurs. It's one (object attribute) or many (Array of object attribute).

Revision history for this message
Alexey Ustinnikov (gr4k) said :
#2

Thanks jsgaarde, that solved my question.