Skip to content

json schema validator #305

Closed
Closed

Description

@csitarichie

Is there any plan to extend the project to support json schema for validating serialization/ serialization ?.

Activity

  1. nlohmann commented on Sep 9, 2016

    @nlohmann
    Owner

    JSON Schema is quite complicated, and it would not make sense to include validation into a header-only library. However, doing this in a different project surely would make sense. Unfortunately, I do not have time for this right now.

  2. pboettch commented on Dec 27, 2016

    @pboettch
    Contributor
  3. gregmarr commented on Dec 27, 2016

    @gregmarr
    Contributor

    @pboettch Have you looked at https://github.com/tristanpenman/valijson which is a header-only C++ library which was tested to work with v1.1.0 of this library?

  4. pboettch commented on Dec 27, 2016

    @pboettch
    Contributor

    I saw it when doing my research, then forgot about it and was disappointed by the validator of rapidjson. Stupid me - it looks good. But I learnt how to use nlohmann::json and I learnt about schemas. Was worth the time spent.

  5. gregmarr commented on Dec 27, 2016

    @gregmarr
    Contributor

    That kind of experience with something you weren't well versed in before is always helpful. :)

  6. nlohmann commented on Dec 28, 2016

    @nlohmann
    Owner

    @pboettch So what is the state of your project now? Will you continue or are you happy with tristanpenman/valijson?

  7. pboettch commented on Dec 28, 2016

    @pboettch
    Contributor

    I continue. The design approach is different (completely based on your json-lib and nothing else).

    And it's fun.

  8. mipac commented on Mar 26, 2019

    @mipac

    JSON Schema is quite complicated, and it would not make sense to include validation into a header-only library. However, doing this in a different project surely would make sense. Unfortunately, I do not have time for this right now.

    Sorry for noise, but I can't see why the validation can not be a header only lib?

  9. pboettch commented on Mar 26, 2019

    @pboettch
    Contributor

    Which one? valijson is header only. Mine's not. Mine seems to be faster. Compilation and runtime.

  10. mipac commented on Mar 26, 2019

    @mipac

    I've just seen yours, I like the idea of nlohmann lib "addon"
    And have you test a header only version of your implementation ;)

  11. pboettch commented on Mar 26, 2019

    @pboettch
    Contributor

    No, but you can try it yourself. Just include the .cpp-file in your code.

    You will lose on compile-time, gain nothing on runtime but it might be easier to integrate if you don't want to use CMake.

  12. mipac commented on Mar 26, 2019

    @mipac

    ok I'll give a try
    in a header only form it could be integrated in this lib

    thx for your lib, seems very promising

  13. pboettch commented on Mar 26, 2019

    @pboettch
    Contributor

    Hammering everything to header-only because project-policies is not helping anyone. At least in my opinion.

  14. mipac commented on Mar 26, 2019

    @mipac

    Oh ok, I don't have enough experience to have a good opinion
    But, I think it could be useful to have an header version and a binary version :D

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions