Chris1221 / yamldoc

Dependency-free YAML documentation engine.

Home Page:http://chrisbcole.me/yamldoc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parser.parse_scheama unable to cope with multiple parameter values

martinSergeant opened this issue · comments

parse_scheama unable to cope with multiple parameter values e.g. parsing the following:-

        version:
                type: string
        general:
                properties:
                        var1:
                                type:
                                    - array
                                    - string
                        var2:
                                type: string
                        var3:
                                type: string

gives

{'base': {'version': 'string'}, 'general': {'var1': 'string', 'var3': 'string'}}

expected output

{'base': {'version': 'string'}, 'general': {'var1':[ 'array','string'], 'var2':'string','var3': 'string'}}

Thank you Martin, do the changes in #5 solve your problem? They work for this test case.

@martinSergeant I'll merge this next week, if it does not meet your use case please let me know. Happy to adapt for whatever problems you are trying to solve.