Code Monkey home page Code Monkey logo

yaml-schema-cpp's People

Contributors

joanvallve avatar pepms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yaml-schema-cpp's Issues

boost::filesystem and std::filesystem

From c++17, std already includes the filesystem package.

This issue has two implications:

  • CMake: Handling dependency requirement boost::filesystem depending on the c++ standard.
  • C++/preprocessor: Including proper files and namespace of filesystem.

bin files are not in build/bin/

(imported from gitlab. Author: @joansola)

after compilation, the following bin objects are in directory build/ and not /build/bin/ or build/lib/

  • cost-example
  • libyaml-schema-cpp_example.so
  • libyaml-schema-cpp.so
  • stage-example
  • yaml_template_generator

allow empty schemas

(copied from Gitlab. Author: @PepMS )

I found the case where I have a base class that requires no parameters or data to be introduced. Thus, its schema is empty.

Still, I'd like to have an empty base schema, which is not allowed now.

Eventually, the base class might have need some parameters and then, I'll have the machinery ready to add these in the empty base schema.

A workaround is to add in the base class a dummy parameter:

dummy:
  mandatory: false
  type: double
  default: 0
  doc: ""

expressions more useful

Implement use of expressions differently: taking parameters from other levels and enabling expressions depending on expressions.. etc

Before applying schema, implement a multiple queried evalSchema function that evals expressions that can be evaluated (considering the YAML) and iterate until all expressions can be evaluated. Then, apply schema.

Make Eigen optional

Eigen is actually not needed by the library. It's just another type of parameter that can be specified. We may want to move all Eigen-dependent code to a folder that is optionally compiled if Eigen is found in the system.

aplySchema crashes with empy field of params

(copied from gitlab. Author: @PepMS)

I have the following situation, where I have a non-mandatory with default param_1 specified inside a params family. That is,

params:
    param_1:
      _mandatory: false
      _type: string
      _doc: "doc_1"
      _default: "string_1"

If, in the input yaml file we do not specify (at least) the params: field, the applySchema() breaks. Probably it is because it tries to access the node[params] to apply the default of param_1` but it does not exist.

I think that a good solution for this might be to add the family node name (in this case params) if it does not exist in the input yaml.

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.