How to set minOccurs and maxOccurs parameters during type definition?

Asked by Alexey Ustinnikov on 2016-02-03

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:
2016-02-10
Last query:
2016-02-10
Last reply:
2016-02-10
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).

Alexey Ustinnikov (gr4k) said : #2

Thanks jsgaarde, that solved my question.