Coder Social home page Coder Social logo

Comments (7)

martin-langhoff avatar martin-langhoff commented on August 24, 2024 1

Don't worry about my "impractical" complaint, I was wrapping my mind around the new API. Apologies.

The important part is to get a current example to the README :-) (alternatively, remove the wrong example and point people to unit tests and source instead...).

from conform.

sdball avatar sdball commented on August 24, 2024 1

Thanks for this @martin-langhoff! I was just struggling with trying to get transforms to work and even copied the schema from the README entirely into my app to see if I was missing some critical piece. Your example is great 🎉

from conform.

bitwalker avatar bitwalker commented on August 24, 2024 1

Sorry about that, I somehow completely missed updating the README when I released 2.0, nothing worse than bad docs :(

from conform.

bitwalker avatar bitwalker commented on August 24, 2024

@martin-langhoff I'll make sure the docs get updated! You mentioned that the new API format is impractical, could you clarify your concerns? Your specific example is not much longer than alternatives I can think of, but has the benefit of scaling to some very complex configuration requirements. Is there a specific issue you would like to see addressed?

from conform.

sdball avatar sdball commented on August 24, 2024

No worries! I'll try and take a pass at updating the README. It'll also help me learn the ins and outs of conform. 😄

from conform.

sdball avatar sdball commented on August 24, 2024

@bitwalker I've got the myapp.another_val transform example working. But I'm having a hard time figuring out how to make the lager settings work. It looks like Conform.Conf.get needs to pull the actual setting that the variable is going to and not its friendly id. If that's the case I don't quite understand how to translate the previous example for 2.0. I don't see how the transform can add new keys to the effective configuration.

Let me know if I'm missing something, but I think I'll need to rework the schema a bit in order to support that example.

Also in the README now there's some nice extra documentation for myapp.another_val: how is that generated? My generated conf file only has the doc line the allowed values from the enum.

from conform.

bitwalker avatar bitwalker commented on August 24, 2024

I've gone through and updated the README, and added tests which cover the examples.

from conform.

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.