Comments (3)
Just my opinion about the "year support" and the format. I think that we have to use the ISO 8601 format of datetime and that we shouldn't at all support other formats (such as year only) because the decision to use 00:00:00 or 23:59:59 as time or even 01-01 or 12-31 as day is something that depends on needs.
from core.
@sroze What about letting DateTime
handling that for you? The user would be warned that the only requirement for his date to be valid is to be accepted by DateTime
aside from edge cases like for the year support. If we follow the ISO 8601 format we have to specify the hour, minutes and seconds which in many cases is unnecessary.
from core.
I'm for blindly pass the value to the DateTime
constructor but advertise only that ISO 8601 dates are supported in the doc.
ISO 8601 should be the preferred way because it's standard (and used in JSON-LD) but this approach give more flexibility for advanced users knowing of the bundle and PHP works internally (we must keep in mind that final users are people consuming the API from various langages such as JavaScript and Ruby).
from core.
Related Issues (20)
- `DateFilter` does not work sometimes until the cache is cleared.
- JsonSchema validation fail for non-readable link with `assertMatchesResourceItemJsonSchema`
- v3.3.8: Embedded subresources no longer denormalizing HOT 19
- Error during PUT operation when using DTO and stateOptions HOT 1
- Metadata/ApiProperty.php default property has incorrect PHP annotation type HOT 1
- Invalid IRIs in output DTOs HOT 6
- 3.3.10 [BC break?]: Entities with embedded non-resource subentities fail schema checks after #6366 HOT 3
- 'uri_variables' missing from context during denormalization HOT 4
- ElasticSearch ItemNormalizer has incorrect return type on normalize
- "Unable to generate IRI" error after upgrade to 3.3 HOT 1
- Regression in `jsonopenapi` serialization of references caused by #4019 HOT 2
- PUT or PATCH with null values doesn't clear the value of nullable ManyToOne property of ORM entity HOT 1
- Filter Parameters only get documented on GetCollection operations in OpenAPI document HOT 2
- Output when use Processor HOT 1
- Adding a group to an assertion remove enum values in the doc HOT 1
- WriteListener is called on Get operations HOT 2
- Support for BackedEnumFilter HOT 1
- Non-scalar values in HTTP request HOT 2
- Call to protected method splitPropertyParts() from scope AbstractFilter
- ApiTestCase can lead to several kernels (and therefore several entity managers and so on)
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 core.