aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/json.scala
Commit message (Collapse)AuthorAgeFilesLines
* Move REST functionality to separate projectJakob Odersky2018-10-091-398/+0
|
* Improve PhoneNumber (#222)Sergey Nastich2018-09-191-4/+12
| | | | | * Add support for extensions * Add PathMatcher and allow parsing JSON from string * Add a number of convenience methods which are to be used instead of `toString`
* Trait-based initialization and other utilitiesJakob Odersky2018-09-121-78/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the concept of a 'platform', a centralized place in which environment-specific information will be managed, and provides common initialization logic for most "standard" apps. As part of the common initialization, other parts of core have also been reworked: - HTTP-related unmarshallers and path matchers have been factored out from core.json to a new core.rest.directives package (core.json extends those unmarshallers and matchers for backwards compatibility) - CORS handling has also been moved to a dedicated utility trait - Some custom headers have been moved from raw headers to typed ones in core.rest.headers - The concept of a "reporter" has been introduced. A reporter is a context-aware combination of tracing and logging. It is intended to issue diagnostic messages that can be traced across service boundaries. Closes #192 Closes #195
* Add `@@ Trimmed` tag for Strings and Names to support by JSON readers (#211)v1.14.1Sergey Nastich2018-09-101-6/+9
|
* Migration to `java.time.Instant` and `java.time.LocalDate`: Part 1 (#200)v1.13.0Sergey Nastich2018-08-241-7/+50
| | | | | | | | | | * Add semi-backwards-compatible JSON formats and path matchers for java.time.Instant and java.time.LocalDate * Use `Clock` in `ApplicationContext` instead of `TimeProvider`, deprecate `TimeProvider` * Add `ChangeableClock` in time package for tests * Add generators for instants and LocalDates
* Add UnauthorizedException and catch it in AuthProvider (#198)Zach Smith2018-08-211-0/+2
| | | | | | * Add AuthorizationException and pass it through in authorize directive * Move recover to authenticator method
* Add json formats for country code and currency code (#197)v1.12.3Sergey Nastich2018-08-211-0/+11
|
* Validate phone numbers when parsing from JSON (#183)v1.11.8Zach Smith2018-07-191-1/+7
| | | | | | * Validate phone numbers when parsing from JSON * Change to intercept for test
* Add service exception json formatters and pass through exceptions in ↵v1.9.4zachdriver2018-05-251-0/+19
| | | | HttpRestServiceTransport (#168)
* [API-1584] Change AuthCredentials to accept a string identifier (#166)v1.9.3Arthur Rand2018-05-161-1/+27
| | | | | | | | | | | | * make email optional, add optional phone number to AuthCredentials * make AuthCredentials take a String instead of an email * wrap phone number parsing in Try * add json formatter for AuthCredentials * try val
* ListResponse and Unmarshallers improvementsv1.8.23Sergey Nastich2018-04-171-0/+6
| | | | | | * Add an alternative `ListResponse` constructor allowing optional pagination * Unmarshal JsStrings from query parameters
* Fixed id json formatKseniya Tomskikh2018-04-101-1/+1
|
* Add convenience methods to work with Tags: `taggedWith` wrapper and a proxy ↵Sergey Nastich2018-04-091-2/+10
| | | | | JSON format (#147) * Add convenience methods to work with Tags: `tagged` wrapper and a proxy JSON format
* Add enumeratum support to JSON format and generators (#144)v1.8.12Sergey Nastich2018-04-031-11/+42
| | | | | * Add enumeratum support to JSON format and generators * Move enumeratum serializers into their own object. Add enumeratum unmarshaller. Add entities to derive JsonFormats instead of having to type them externally.
* [API-1468] add TimeOfDay (#141)v1.8.11Arthur Rand2018-03-281-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add TimeOfDay * add formatter * . * Revert "." This reverts commit 89576de98092dd75d3af7d82d244d5eaa24d31d9. * scalafmt * add before and after to ToD, and tests * rearrage, make fromStrings * add generator * address comments * use explicit string for TimeZoneId * renaming * revert Converters changes * change name of private method * change apply method * use month
* Add DayOfWeek typeZach Smith2018-03-061-1/+4
|
* Add InetAddress JSON formatZach Smith2017-12-201-0/+13
|
* Apply new formattingJakob Odersky2017-11-201-6/+8
|
* Slick support for any Refined types, JSON format and generator for ↵vlad2017-10-201-0/+20
| | | | NonEmptyName, Unit-tests
* [RFC] Using "Refined" library (https://github.com/fthomas/refined) to allow ↵vlad2017-10-191-0/+19
| | | | defining entities with more precise types
* Making string to json marshallers not implicitv0.13.21vlad2017-07-111-4/+4
|
* Unmarshallers for pubsub messages toov0.13.18vlad2017-07-061-1/+7
|
* Json to string marshallers for pubsub messagesv0.13.17vlad2017-07-061-1/+7
|
* Base64 decode public key file in token authorizationv0.12.9Zach Smith2017-05-251-1/+2
|
* make idFormat work with UUIDStewart Stewart2017-05-171-12/+3
|
* try to match uuid first in id PathMatcherStewart Stewart2017-05-101-8/+3
|
* normalize uuid case on json deserializationStewart Stewart2017-05-101-6/+17
|
* add method for normalize uuid constructed from pathStewart Stewart2017-05-101-0/+9
|
* Bump sbt-settings and fix errorsv0.12.3Zach Smith2017-05-011-6/+6
|
* tag int as month via apply methodStewart Stewart2017-03-151-1/+1
|
* reintroduce month formatStewart Stewart2017-03-151-1/+9
|
* Added writing tracking Id to MDC so it can be logged for all messages, ↵vlad2017-03-131-1/+0
| | | | removed some linkerd legacy and refined Revision equals
* Made date json format — root to be able to pass it in HTTP bodyv0.10.4vlad2017-02-021-1/+1
|
* Moved email and phone number to corev0.10.1vlad2017-02-021-3/+23
|
* Merge remote-tracking branch 'origin/master' into master3vlad2017-02-021-10/+11
|\
| * serialize date to ISO string rather than objectStewart Stewart2017-01-311-10/+11
| |
* | Removing permissions from user and role as permission is something to check ↵vlad2017-02-021-0/+9
|/ | | | | | not something to have now Adding couple handy case classes
* add Date#toString and Date.fromStringStewart Stewart2016-12-221-1/+1
|
* clarify month deserialization error messageStewart Stewart2016-12-191-1/+1
|
* add json formatter for dateStewart Stewart2016-12-191-1/+5
|
* fix name of month json formatterStewart Stewart2016-12-191-1/+1
|
* scalafmtStewart Stewart2016-12-191-1/+1
|
* serialize date to json as object with three fieldsStewart Stewart2016-12-191-14/+6
|
* add json format for date (ISO)Stewart Stewart2016-12-171-0/+17
|
* General GADT json formatv0.9.27vlad2016-12-081-0/+48
|
* Lost important PathMatcher bugfixv0.9.25vlad2016-12-071-3/+9
|
* Changed ids underlying type to String and made Ids and Names — value-classesvlad2016-11-291-9/+7
|
* Made EnumJsonFormat a RootJsonFormatv0.9.17vlad2016-11-181-7/+7
|
* Renamed package to xyz, New formatting, authorize directive supporting ↵v0.9.4vlad2016-10-211-2/+1
| | | | multiple permissions
* Renamed package to xyz, New formatting, authorize directive supporting ↵vlad2016-10-211-0/+107
multiple permissions