Code Monkey home page Code Monkey logo

Comments (3)

kpervin avatar kpervin commented on May 24, 2024

I am also experiencing this. Looks like this is the cause:

// index.js

export default async function openapiTS(source, options = {}) {
    if (!source) {
        throw new Error("Empty schema. Please specify a URL, file path, or Redocly Config");
    }
    const redoc = options.redocly ?? // this should be options.redoc
        (await createConfig({
            rules: {
                "operation-operationId-unique": { severity: "error" },
            },
        }, { extends: ["minimal"] }));

from openapi-typescript.

drwpow avatar drwpow commented on May 24, 2024

It's almost as if my env var isn't being passed along to redocly.

Ah that’s a very good guess; at least the right path of inquiry. Though the config gets resolved and loaded, it’s very likely that passing through openapi-typescript the env vars aren’t set properly. Would welcome a PR for anyone willing to investigate this! This is a good first issue for someone.

from openapi-typescript.

drwpow avatar drwpow commented on May 24, 2024

Found a related Redocly config issue, fixed in #1635. Will push a release shortly that should fix this, hopefully? But let me know if the problem persists

from openapi-typescript.

Related Issues (20)

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.