GithubHelp home page GithubHelp logo

kislerdm / gbqschema_converter Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 4.0 44 KB

Python library to convert google bigquery table schema to jsonschema

Home Page: https://pypi.org/project/gbqschema-converter

License: MIT License

Python 99.12% Shell 0.88%
python3 google-cloud-platform google-bigquery jsonschema bigquery-schema

gbqschema_converter's Issues

schema converter returns empty list

This schema returns an empty list when using: schema_convert = module.json_representation(schema)

{
          "definitions": {},
          "$schema": "http://json-schema.org/draft-07/schema#",
          "type": "object",
          "title": "Add Account Schema",
          "required": [
            "AppName",
            "Provider",
            "AccountId"
          ],
          "properties": {
            "AppName": {
              "type": "string",
              "title": "Application Name",
              "pattern": "^[a-zA-Z]{1}[-a-zA-Z0-9_\\s]{0,39}$"
            },
            "Provider": {
              "type": "string",
              "title": "Cloud Service Provider",
              "enum": [
                "aws",
                "gcp",
                "azure"
              ]
            },
            "AccountId": {
              "type": "string",
              "title": "AWS Account Id",
              "pattern": "^[0-9]{12}$"
            },
            "Features": {
              "type": "object",
              "title": " Account Features",
              "required": [
                "Logs",
                "Encryption",
                "Backup"
              ],
              "properties": {
                "Logs": {
                  "type": "boolean",
                  "title": "Enable Logs"
                },
                "Encryption": {
                  "type": "boolean",
                  "title": "Enable Encryption"
                },
                "Backup": {
                  "type": "boolean",
                  "title": "Enable Backup"
                }
              },
              "additionalProperties": False
            }
          },
          "additionalProperties": False
        }

support mode : REPEATED

Hello -- I was hoping to use this library to help with validating json objects before uploading to bigquery however it doesnt seem to support mode REPEATED objects (arrays).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.