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

schema

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

psverkada
psverkada commented Jan 14, 2020

The fact that exclude takes dotted notation for nested fields, but unknown does not apply to nested fields, means that exclude doesn't work for nested fields in some common use cases unless the nested schema(s) have the desired Meta.unknown setting, and then they are not runtime-flexible, which is the great benefit of Schema and load taking exclude. Somewhat new to marshmallow so mayb

type-graphql
CaptainCannabis
CaptainCannabis commented May 4, 2020
  • I'm submitting a ...

    • bug report
    • feature request
    • support request
  • What is the current behavior?

At the moment it ist possible to use the selectOption "customLabel" for setting a function which can generate custom strings by using the options properties.

  • What is the motivation / use case for changing the behavior?

I would like to see an option

tetraptych
tetraptych commented Nov 11, 2017

DateType and DateTimeType and subclasses use datetime.datetime.strptime, which in turn uses the dateutil library. Unfortunately, this library is much slower at ISO8601 date parsing than C-based alternatives (in particular, ciso8601):

import datetime
import ciso8601
%timeit datetime.datetime.strptime('2018-01-01', '%Y-%m-%d')
# 10.5 µs ± 440 ns per loop (mean ± std. dev. of 7 r
soullivaneuh
soullivaneuh commented Sep 5, 2019

This tools is great, we can define and validate various config from file, env, cli arg... and we can even put a short doc on each field.

But what if I want to display a clear and concise doc reference on a website on a cli usage?

Should this package be able to handle that? If not, is it compatible with other packages doing that need?

Thanks

dj-xatra
dj-xatra commented Feb 19, 2020

It's not completely clear from the documentation how to use Markdown in a Schemameta XML file. E.g. after some experimenting I found that an unordered should be written differently depending on whether it's inside an element or an attribute.

<comments>- one
- two</comments>

<column name="foo" comments="- one&#10;- two" />

Please document the use of Markdown in Schemameta and wh

JorgeSivil
JorgeSivil commented Oct 12, 2019

For MySQL migrations to run, the command must be this:

goose mysql "${DB_WRITE_USERNAME}:${DB_WRITE_PASSWORD}@tcp(${DB_WRITE_HOST}:${DB_WRITE_PORT})/${DB_WRITE_DATABASE}?multiStatements=True" up

In the examples, none actually has the host and port, nor the multiStantements that weren't allowing me to run a migration.

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

MR-Mostafa
MR-Mostafa commented Apr 4, 2020

Hi,
How can we use this package in the validate method of mongoosejs? (like validator.js or @hapi/joi)

const mongoose = require('mongoose');
const validator = require('validator');

const userSchema = new mongoose.Schema({
  name: {
    type: String,
    required: [true, 'A tour must have a name'],
     validate: [validator.isAlpha, 'name must only contain characters']
  },
  p
gvbkr
gvbkr commented Nov 10, 2018

I love graphql-compose framework. We used it in an application using Mongo and our server code is very simple using this.

For a host or reasons, we are moving to SQL (RDBMS), so we want to use sequelize. Are there resources on developing a custom plugin or are there plans to add support to sequelize. If there is an existing effort, I would love to help as well.

I don't want to miss graphql-

bradleyayers
bradleyayers commented Feb 21, 2018

I have a table document with a column type of type document_type:

CREATE TYPE document_type AS ENUM (
    'NOTE',
    'PAGE'
);
CREATE TABLE document (
    id uuid NOT NULL,
    document_type document_type NOT NULL
);

This causes a name conflict in the generate types:

export type document_type = "NOTE" | "PAGE";

// ...

export namespace documentFields

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.