Liking cljdoc? Tell your friends :D

urpx.schema

Malli schemas for URPX entities, describing the coerced shape.

Two-layer model (mirroring the clj-oa3 pattern):

  • urpx.core — raw parse: JSON-LD with namespaced keys, all string values.
  • urpx.schema — coerced shape: typed Clojure values (BigDecimal, LocalDate, LocalTime, LocalDateTime, Duration, integer month numbers).

Schemas carry :decode/urpx-jsonld decoders that turn the raw parser output (strings) into the typed shape described here. The transformer is built and applied in urpx.coerce. Reference resolution (URPX-ej9) keeps :jsonld/id references intact; consumers dereference via an entity index.

Schemas are bare def vars referenced by symbol — there is no central registry.

Malli schemas for URPX entities, describing the coerced shape.

Two-layer model (mirroring the clj-oa3 pattern):
  - urpx.core      — raw parse: JSON-LD with namespaced keys, all string values.
  - urpx.schema    — coerced shape: typed Clojure values (BigDecimal, LocalDate,
                     LocalTime, LocalDateTime, Duration, integer month numbers).

Schemas carry `:decode/urpx-jsonld` decoders that turn the raw parser output
(strings) into the typed shape described here. The transformer is built and
applied in `urpx.coerce`. Reference resolution (URPX-ej9) keeps :jsonld/id
references intact; consumers dereference via an entity index.

Schemas are bare def vars referenced by symbol — there is no central registry.
raw docstring

BillingModelclj


CalculationMethodclj


Conditionclj


CustomerProfileclj


DataSourceReferenceclj


Dateclj


DateTimeclj


Decimalclj


EligibilityRuleclj


Holidayclj

A single named holiday in a urpx:HolidayCalendar. URPX permits the observance to be expressed as either a literal date (urpx:holidayDate, year-specific) or a free-form rule string (urpx:holidayRule, recurring). urpx:observanceRule (a Ref to urpx:actualDateObservance / urpx:nearestWeekdayObservance / urpx:mondayIfWeekendObservance / urpx:fridayIfWeekendObservance) optionally shifts the observance date when it falls on a weekend.

A single named holiday in a urpx:HolidayCalendar. URPX permits the
observance to be expressed as either a literal date (urpx:holidayDate,
year-specific) or a free-form rule string (urpx:holidayRule, recurring).
urpx:observanceRule (a Ref to urpx:actualDateObservance / urpx:nearestWeekdayObservance /
urpx:mondayIfWeekendObservance / urpx:fridayIfWeekendObservance) optionally
shifts the observance date when it falls on a weekend.
raw docstring

HolidayCalendarclj

A bundle of urpx:Holiday entries attached to a PlanElements (and optionally referenced from a TOUSchedule via urpx:hasCalendar). When attached, the calendar is the canonical holiday set for the rate plan — consumers can derive a (LocalDate -> bool) predicate from it via urpx.holidays/derive-predicate instead of supplying one out-of-band.

A bundle of urpx:Holiday entries attached to a PlanElements (and optionally
referenced from a TOUSchedule via urpx:hasCalendar). When attached, the
calendar is the canonical holiday set for the rate plan — consumers can
derive a (LocalDate -> bool) predicate from it via urpx.holidays/derive-predicate
instead of supplying one out-of-band.
raw docstring

Intclj

An xsd:integer field — JSON parser may produce long already, but tolerate strings.

An xsd:integer field — JSON parser may produce long already, but tolerate strings.
raw docstring

IsoDurationclj


Ledgerclj


MetricInputclj


MetricSpecificationclj


MonthNumberclj


NodeIdentityclj

Common JSON-LD identity fields present on most entities.

Common JSON-LD identity fields present on most entities.
raw docstring

Organizationclj


PlanElementsclj


Priceclj


PriceDefinitionclj


Pricesclj


PriceSetclj


RatePlanclj


RatePlanModifierclj


RatePlanModifierVersionclj


RatePlanVersionclj


Refclj

A JSON-LD @id reference: {:jsonld/id "urpx:foo"}. Resolved against the entity index built from the parsed document.

A JSON-LD @id reference: {:jsonld/id "urpx:foo"}.
Resolved against the entity index built from the parsed document.
raw docstring

Seasonclj


ServiceTierclj

A block-usage tier (e.g. CPAU E-1's baseline tier 1 / over-baseline tier 2). The bounds are interpreted with the matching :urpx/...BoundOperator vocab IRIs.

A block-usage tier (e.g. CPAU E-1's baseline tier 1 / over-baseline tier 2).
The bounds are interpreted with the matching :urpx/...BoundOperator vocab IRIs.
raw docstring

Timeclj


TimeBracketclj


TOUPeriodclj


TOUScheduleclj


TOUTierclj

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close