/
erioxis
/
web-nodejs
Обзор
Документация
Войти
/
erioxis
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
backend/node_modules/fast-json-stringify/lib/location.js
24 строки
495 B
erioxis
lab11fix
15 дек 2025, 23:21
15 дек 2025, 23:21
70dc7ba
Код
Авторство
О чём код?
'use strict' class Location { constructor (schema, schemaId, jsonPointer = '#') { this.schema = schema this.schemaId = schemaId this.jsonPointer = jsonPointer } getPropertyLocation (propertyName) { const propertyLocation = new Location( this.schema[propertyName], this.schemaId, this.jsonPointer + '/' + propertyName ) return propertyLocation } getSchemaRef () { return this.schemaId + this.jsonPointer } } module.exports = Location