GithubHelp home page GithubHelp logo

Comments (1)

wol-soft avatar wol-soft commented on July 26, 2024

The current process of resolving a composition looks like:

  1. addComposedValueValidator gets a property which has a composition keyword
  2. A new dummy-property is initialized to represent the composition (without knowledge about the provided property)
    1. The dummy-property is generated via the ComposedValueProcessorFactory
    2. For each composition element another nested dummy-property is generated (this time via the PropertyProcessorFactory, nested inside a CompositionPropertyDecorator)
    3. Out of all nested dummy-properties a merged-property will be generated which will be used as property type for the property holding the composition (the merged property contains all nested properties of each composition element, several TODOs waiting at that point to not create a merged property if none or only one composition element with nested properties is provided)
  3. All validators of the first dummy-property will be transferred to the provided property to make sure the property is validated against the composition

To make it possible to determine inside the dummy-property whether it's a composition on object or on property-level the information about the current level has to be provided to the dummy-property via the ComposedValueProcessorFactory.

If the information is available, only create a merged property if the composition is located on object-level

from php-json-schema-model-generator.

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.