How to use the @ember-data/serializer/json.prototype function in @ember-data/serializer

To help you get started, we’ve selected a few @ember-data/serializer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emberjs / data / packages / serializer / addon / json-api.js View on Github external
willMergeMixin(props) {
      let constructor = this.constructor;
      warn(
        `You've defined 'extractMeta' in ${constructor.toString()} which is not used for serializers extending JSONAPISerializer. Read more at https://api.emberjs.com/ember-data/release/classes/JSONAPISerializer on how to customize meta when using JSON API.`,
        isNone(props.extractMeta) || props.extractMeta === JSONSerializer.prototype.extractMeta,
        {
          id: 'ds.serializer.json-api.extractMeta',
        }
      );
      warn(
        'The JSONAPISerializer does not work with the EmbeddedRecordsMixin because the JSON API spec does not describe how to format embedded resources.',
        !props.isEmbeddedRecordsMixin,
        {
          id: 'ds.serializer.embedded-records-mixin-not-supported',
        }
      );
    },
    warnMessageForUndefinedType() {

@ember-data/serializer

Provides Legacy JSON, JSON:API and REST Implementations of the Serializer Interface for use with @ember-data/store

MIT
Latest version published 1 day ago

Package Health Score

92 / 100
Full package analysis