Coder Social home page Coder Social logo

Comments (7)

IvanGoncharov avatar IvanGoncharov commented on May 16, 2024 2

I commit fix for some of specs. Here is update list:

1- transportation_laws_and_incentives_0_1_0
2- high_performance_building_database_1_0
3- owler_1_0_0
4- org_hunter_1_0_0
5- ontraport_1_1_3
6- yunbi
7- vat api
8 - Pandorabots
9- regulations_gov_3_0
10- i_am_real_1_0_0
11- hetras hotel API v0 v0
12- hetras_booking_api_v0_v0
13- getty_images_3_0
14- gavagai_1_0_0
15- data2_crm_api_documentation_1_0_0
16- core_api_v2_beta_2_0
17- city_context_1_0_0
18- active_documentation_for__v1_1_1_7

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 16, 2024

Hi @maryguirola
Thank you for input.
Today spoke with @darosh and he reported exactly the same problem.
I will try to create a solution to fix it.

from openapi-directory.

rbren avatar rbren commented on May 16, 2024

+1. At some point I had a script to fix these, something like

function looksLikeAPIKey(param) {
  return param.name.mach(/api.?key/i)
}

If every operation has an identical parameter with looksLikeAPIKey === true I turn it into a securityDefinition

from openapi-directory.

IvanGoncharov avatar IvanGoncharov commented on May 16, 2024

@bobby-brennan I plan to do something similar but also check that securityDefinition is missing.

from openapi-directory.

darosh avatar darosh commented on May 16, 2024

👍

from openapi-directory.

darosh avatar darosh commented on May 16, 2024

It would be nice to have info about such securityDefinition extraction in the list.json together with some sort of style validation warning/hint feedback to API spec creator.

from openapi-directory.

darosh avatar darosh commented on May 16, 2024

There are similar key and oauth_token query params alternatives in many googleapis with machine unreadable (conditionally required) descriptions like:

Required unless you provide an OAuth 2.0…

I guess they could be extracted too.

from openapi-directory.

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.