Code Monkey home page Code Monkey logo

Comments (3)

ralfhandl avatar ralfhandl commented on August 12, 2024

@tsg2k2 The tool currently makes the simplifying assumption that

  • deep insert is always possible
  • deep update is never possible (because it was only added in V4.01, which is not finalized yet)

This works for most services.

The tool currently produces components from the types and reuses these in all operations. Assume A -> B -> C, then the insert structure of A references the insert structure of B, which references the insert structure of C, allowing deep insert of A with B with C.

Full support for deep insert/update capabilities and expand restrictions would require a more complicated approach: assume B allows deep insert of C, and A allows deep insert of B but not C. This would require completely different insert structures for A and B.

Thoughts?

from odata-openapi.

tsg2k2 avatar tsg2k2 commented on August 12, 2024

I think that good start would be to take into account deep insert capability. It's is good enough for many simple use cases.

from odata-openapi.

ralfhandl avatar ralfhandl commented on August 12, 2024

Since version 0.9.0 deep insert and deep update is only implied for containment navigation properties.

from odata-openapi.

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.