The Wayback Machine - https://web.archive.org/web/20201013072017/https://github.com/topics/schema
Skip to content
#

schema

Here are 1,368 public repositories matching this topic...

networkimprov
networkimprov commented Mar 20, 2018

Bug Report

The following field (without a validator) cannot be updated via the model. No errors or warnings are logged:

{ "label":"ANR",
  "model":"or.anr",
  "type":"checklist",
  "listBox":true,
  "values": [
      {"name":"a", "value":[1,2]},
      {"name":"b", "value":[2,2]}
   ] }

model.or.anr = [[1,2]]; // fails to check "a"

If you would like a jsfiddle demo, let

mausch
mausch commented Apr 2, 2020

The title might seem a bit vague but I don't know how to describe it any better tbh :-)

Anyway this is what happened: I got some 500 responses from the schema registry and all I could see in the logs was :

[2020-04-02 16:03:35,048] INFO 100.96.14.58 - - [02/Apr/2020:16:03:34 +0000] "PUT /config/some-topic-value HTTP/1.1" 500 69  502 (io.confluent.rest-utils.requests)

The logs di

uinz
uinz commented Jul 5, 2020

default

const V = require('fastest-validator');

const v = new V();

const schema = {
  tuple: {
    type: 'tuple',
    empty: false,
    items: [{ type: 'string', default: '1' }],
  },
};

const data = { tuple: [] };
console.log(v.validate(data, schema));
console.log(data);
[
  {
    type: 'tupleEmpty',
    message: "The 'tuple' field must not be an empty

Improve this page

Add a description, image, and links to the schema topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the schema topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.