This changelog references the relevant changes done in 1.x versions.
- issue #40: Create shortcut in Mixin for findOne and findAll.
- issue #38: Validate message type against anyOf only, not class name.
- Update reference to class names to use php's builtin class property, e.g.
MyClass::class
.
- issue #36: BUG :: In
MessageRef
, when using php serialization a MessageRef doesn't always restore curies correctly. This may have been the culprit for issue #34.
- issue #34: BUG :: MessageRef from string fails when no tag is supplied.
- Extended
\JsonSerializable
inGdbots\Pbj\WellKnown\Identifier
since we implement it on all identifiers anyways. - Added
MessageResolver::resolveQName
which returns theSchemaCurie
for the givenSchemaQName
.
- issue #32: Add "TrinaryType". ref https://en.wikipedia.org/wiki/Three-valued_logic
POSSIBLE BREAKING CHANGES
If you are using BigNumber
, GeoPoint
, Identifier
or Microtime
classes in your own code to populate schema fields
you must use the new Gdbots\Pbj\WellKnown\*
classes instead. The old classes in gdbots/common
are now deprecated.
- issue #30: Add WellKnown Types.
- issue #26: Use
pbj_keyword_analyzer
for strings with patterns inGdbots\Pbj\Marshaler\Elastica\MappingFactory
. - Added
Schema::createMessage
convenience method that creates a message instance.
- issue #26: Use
object
instead ofnested
when message field is not a list inGdbots\Pbj\Marshaler\Elastica\MappingFactory
.
BREAKING CHANGES
- Mixins moved to
gdbots/schemas
library and in namespace according to category (Command, Event, etc.) notMixin
. MessageTrait
removed as it only provided typehinting fixes in your IDE and those are no longer needed.- issue #22: Add support for AWS 3.x and Elastic 3.x
- Removed
Format::DATED_SLUG
option, just useSLUG
and enforce slashes/dated option in your app.Format::SLUG
now enforces this regex^([\w\/-]|[\w-][\w\/-]*[\w-])$
. - Renamed
MessageCurie
toSchemaCurie
and addedSchemaQName
for the ultra compact reference. MessageResolver
methodsresolveSchemaId
,resolveMessageCurie
toresolveId
andresolveCurie
respectively.