minca
ApiSchemasVariables

Variable: rating

const rating: object & Typed<{
  review?: string;
  score: number;
}>;

Defined in: packages/core/src/schemas/library/annotations.ts:72

One person's score for something, from 1 to 5, and what they thought.

Type Declaration

description

readonly description: "A score from 1 to 5, one per person per thing, changed by rating again." = 'A score from 1 to 5, one per person per thing, changed by rating again.';
readonly links: object;

links.about

readonly about: LinkDeclaration;

name

readonly name: "std.rating" = 'std.rating';

rules

readonly rules: object;

rules.onePer

readonly onePer: readonly ["@author", "link:about"];

schema

readonly schema: object;

schema.properties

readonly properties: object;

schema.properties.review

readonly review: object;

schema.properties.review.maxLength

maxLength: number = max;

schema.properties.review.minLength?

minLength?: number = min;

schema.properties.review.type

type: "string";

schema.properties.score

readonly score: object;

schema.properties.score.maximum?

maximum?: number = max;

schema.properties.score.minimum

minimum: number = min;

schema.properties.score.type

type: "integer";

schema.required

readonly required: readonly ["score"];

schema.type

readonly type: "object" = 'object';

title

readonly title: "Rating" = 'Rating';

On this page