Giter Site home page Giter Site logo

Comments (5)

peterdesmet avatar peterdesmet commented on June 16, 2024

Same for defining an unspecified float, would that be:

decimalLatitude:
  numberformat: '.'

from whip.

stijnvanhoey avatar stijnvanhoey commented on June 16, 2024

"I hope that specification can be removed"

Why getting rid of the type specification? Do we want (and can we) capture all the use-cases of having integer or floats using the numberformat specification, taking into account we add the your two suggestions:

postalcode:
  numberformat: x # How can you define an integer of unspecified length?
decimalLatitude:
  numberformat: '.'

from whip.

stijnvanhoey avatar stijnvanhoey commented on June 16, 2024

Let's say we exclude the type option, then it should be clear that for the min/max rules, a coercing towards floats is required before the comparison of the value can be done. Moreover, the comparison is always as float?

So, should we specifically require a numberformat specification when a min or max specification is provided?

from whip.

stijnvanhoey avatar stijnvanhoey commented on June 16, 2024

The necessity of type to handle min and max rules has been removed from the code in pywhip, still need to check the extension on the numberformat.

from whip.

stijnvanhoey avatar stijnvanhoey commented on June 16, 2024

This is in the whip statements, closing here.

from whip.

Related Issues (19)

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.