Skip to content

Dealing with xsd:anyType #180

Description

@dyron

From the README:

If your XSD contains xsd:anyType or xsd:anySimpleType types you have to specify a handler for this.

When you generate the JMS metadata you have to specify a custom handler:

# config.yml

xsd2php:
  ...
  aliases: 
    'http://itzbund.de/ozg/bzst/post/dip/v1/':
      anyType: 'MyCustomAnyTypeHandler'

But doing so produces

In ScalarNode.php line 36:
                                                                                                                        
  Invalid type for path "xsd2php.aliases.http://itzbund.de/ozg/bzst/post/dip/v1/". Expected "scalar", but got "array".  

How could this be fixed?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions