Code Monkey home page Code Monkey logo

Comments (7)

goetas avatar goetas commented on May 23, 2024

Can you elaborate a bit more?

from xsd2php.

ruskid avatar ruskid commented on May 23, 2024

Ofcourse, for example I have several XSDs like this

<xsd:complexType name="FoodAndBeverage">
<xsd:all>
<xsd:element maxOccurs="1" minOccurs="1" name="shortDescription">...</xsd:element>
<xsd:element maxOccurs="1" minOccurs="0" name="keyFeatures" type="wm:KeyFeatures">...</xsd:element>
<xsd:element maxOccurs="1" minOccurs="0" name="unitsPerConsumerUnit">...</xsd:element>
<xsd:element maxOccurs="1" minOccurs="0" name="brand">...</xsd:element>
....

Class is created correctly, but it doesn't contain maxOccurs, minOccurs information.

/**
 * XSD Type: FoodAndBeverage
 */
class FoodAndBeverageType
{
    /**
     * @property string $shortDescription
     */
    private $shortDescription = null;

It would be nice to parse that information somehow.

from xsd2php.

ruskid avatar ruskid commented on May 23, 2024

Also I noticed that enumeration elements are handled as simple strings?

<xsd:element maxOccurs="1" minOccurs="1" name="states">
<xsd:annotation>...</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AL">...</xsd:enumeration>
<xsd:enumeration value="AK">...</xsd:enumeration>
<xsd:enumeration value="AZ">...</xsd:enumeration>
<xsd:enumeration value="AR">...</xsd:enumeration>
<xsd:enumeration value="CA">...</xsd:enumeration>
<xsd:enumeration value="CO">...</xsd:enumeration>
<xsd:enumeration value="CT">
<xsd:annotation>

from xsd2php.

goetas avatar goetas commented on May 23, 2024

The validation of a data-structure is a different concept from the data-structure validation.
There was some work done in #2 to enable validation, but at the moment is "WIP" #2

from xsd2php.

ruskid avatar ruskid commented on May 23, 2024

Yep. I understand.
this is why I am asking about the roadmap or progress on this.
Thanks.

from xsd2php.

eros23 avatar eros23 commented on May 23, 2024

was anything done about this?

from xsd2php.

goetas avatar goetas commented on May 23, 2024

If somebody is interested in sponsoring this feature I can continue to work on it.

Pricing can be agreed (compatible with west-european hourly rates).

from xsd2php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.