Comments (5)
Same for defining an unspecified float, would that be:
decimalLatitude:
numberformat: '.'
from whip.
"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.
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.
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.
This is in the whip statements, closing here.
from whip.
Related Issues (19)
- Look into swagger
- redundant evaluation test `equals` HOT 2
- Priority of the `empty` test validation HOT 1
- Add specifications HOT 2
- Create test file from examples in specification
- Questions about numberformat HOT 2
- Ok to ONLY accept empty values with empty: True?
- Declare external vocabularies HOT 5
- Usage of the word 'allowed' HOT 2
- Lookup values HOT 3
- Would a "required" spec be useful? HOT 2
- whip vs DQ IG Tests and assertions HOT 1
- When does a value need to be quoted? HOT 2
- Negative values not covered with current syntax on `numberformat` HOT 2
- Handling integers inside schema definition
- Feature request: Checks for multi-column data consistency HOT 2
- Add documentation on how the specifications can tackle different NaN options
- Support "forbidden" as a test
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whip.