profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/philsturgeon/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Phil Sturgeon philsturgeon @stoplightio Europe https://philsturgeon.com/ I make API Design tools @stoplightio, teach folks how to build APIs at @apisyouwonthate, and live on my bicycle doing laps of Europe. Formerly @wework @pyrocms.

codeguy/php-the-right-way 8270

An easy-to-read, quick reference for PHP best practices, accepted coding standards, and links to authoritative tutorials around the Web

chriskacerguis/codeigniter-restserver 4774

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller.

json-schema-org/json-schema-spec 2390

The JSON Schema I-D sources

philsturgeon/awesome-earth 996

"What can I do about the climate crisis?" Here are 326 things you can do.

philsturgeon/codeigniter-restclient 692

STOP USING THIS USE GUZZLE INSTEAD >.<

Mermade/oas-kit 569

Convert Swagger 2.0 definitions to OpenAPI 3.0 and resolve/validate/lint

apisyouwonthate/build-apis-you-wont-hate 477

Resources for the book: Building APIs You Won't Hate

philsturgeon/codeigniter-template 414

Template library for CodeIgniter which supports modules, themes, partial views, etc.

philsturgeon/codeigniter-curl 383

THIS IS NO LONGER MAINTAINED, USE http://docs.guzzlephp.org INSTEAD

philsturgeon/codeigniter-oauth2 362

NO LONGER ACTIVELY MAINTAINED. USE https://github.com/thephpleague/oauth2-client INSTEAD

push eventstoplightio/elements

Phil Sturgeon

commit sha 9c2259900f7813e3a894108b286c4ea6f18f4577

Document hideInternal and hideTryIt (#1815)

view details

Phil Sturgeon

commit sha 7ebb466520ca365e201eba4f0ed1e9065a3beba3

Merge branch 'main' into dependabot/npm_and_yarn/examples/angular/typescript-4.4.4

view details

push time in 19 hours

issue commentstoplightio/elements

Hide body for 204

Please do @lyqht !

philsturgeon

comment created time in 19 hours

issue commentstoplightio/prism

Prism: note about pairing GET with request body

I'm not sure if this would be appropriate for Prism, im not sure where it would go. Closest is maybe here or somewhere nearby. https://meta.stoplight.io/docs/studio/ZG9jOjcy-working-with-models

pamgoodrich

comment created time in 2 days

push eventstoplightio/elements

Phil Sturgeon

commit sha 9c2259900f7813e3a894108b286c4ea6f18f4577

Document hideInternal and hideTryIt (#1815)

view details

push time in 3 days

delete branch stoplightio/elements

delete branch : docs/hide-internal

delete time in 3 days

push eventstoplightio/elements

Phil Sturgeon

commit sha 1313ad97e7a3c6ebcc03061ca83e3d7644866087

docs: mention hideInternal

view details

push time in 3 days

IssuesEvent

issue commentstoplightio/elements

x-internal operations are still visible on documentation

Which bit, "emails"? I suppose an empty tags shouldn't show up? @mnaumanali94 what do you think?

rolivares

comment created time in 3 days

pull request commentstoplightio/elements

docs: hide try it panel

Superseded by #1815

philsturgeon

comment created time in 3 days

Pull request review commentstoplightio/elements

Document hideInternal and hideTryIt

               <a class="nav-link disabled" href="#">Disabled</a>             </li>           </ul>-          <form class="form-inline mt-2 mt-md-0">

Removed this because we have an actual search component now and this isn't that.

philsturgeon

comment created time in 3 days

PullRequestReviewEvent

PR opened stoplightio/elements

Document hideInternal and hideTryIt
  • docs: hide try it panel
  • docs: mention hideInternal
+28 -8

0 comment

4 changed files

pr created time in 3 days

delete branch stoplightio/elements

delete branch : docs/hide-try-it

delete time in 3 days

PR closed stoplightio/elements

Reviewers
docs: hide try it panel
+26 -7

4 comments

3 changed files

philsturgeon

pr closed time in 3 days

create barnchstoplightio/elements

branch : docs/hide-internal

created branch time in 3 days

issue commentstoplightio/elements

x-internal operations are still visible on documentation

Oh sorry! Elements web component has a hideInternal property which you can use. I'll get this documented now.

rolivares

comment created time in 3 days

issue closedstoplightio/elements

x-internal operations are still visible on documentation

User story.

As an API designer role person I want to mark certain operations as internally visible in order to hide those operations from public display on documentation

Is your feature request related to a problem?

Compatibility problem related to documentation consistency

Describe the solution you'd like

When I'm using stoplight as publishing platform is posible to me acomplish this using the extended property "x-internal", so it would nice that Webcomponent would to have the same behavior

closed time in 3 days

rolivares

issue commentstoplightio/prism

Dynamically generated enum values limited to 100 characters

Welcome! First bug report here or first bug report ever? Either way, happy to have you here, thank you!

Hopefully somebody will be able to take a look and squeak this into a sprint, but if you fancy going for a pull request we're planting 400 trees for every successful pull request!

enekonieto

comment created time in 3 days

issue commentstoplightio/elements

Elements does not include the Accept request header

Absolutely, we should be doing this! In open-source october we're donating 400 trees for each pull request sent so this would be an ideal time to do it: https://hackernoon.com/stoplights-open-source-october-hacktoberfest-involvement-and-pull-requests-for-trees

We don't really need to be setting Content-Type when there's no body either, so if somebody gets into that bit of the code it would be great to knock out both issues. If you submit it as two pull requests that's 800 trees! 🌳 🙌

Linuus

comment created time in 3 days

issue commentstoplightio/elements

x-internal operations are still visible on documentation

@mnaumanali94 I think this got fixed in platform, has that trickled down to an elements release yet?

rolivares

comment created time in 3 days

issue commentstoplightio/elements

Performance issue on "Try it" response code viewer

Thanks for reporting this @jessedobbelaere.

I'm not sure if we would know how to render 500kb of JSON and im not sure we should try. We should however come up with a better error saying something like "Response size too large, please use the request code below to generate a CURL command so you can try this out in the command line" or something like that.

@mnaumanali94 what do you think?

jessedobbelaere

comment created time in 3 days

issue commentstoplightio/elements

Request sample dropdown second level default top capped too soon

Thanks for reporting this and providing a view @itsmewes, this is brilliant to see such a customised version of Elements in the wild.

@mnaumanali94 could you see what might be going on here? Is this some weird CSS conflict perhaps?

itsmewes

comment created time in 3 days

issue openedstoplightio/elements

Schema view has no example for root allOf

Describe the bug

When an OpenAPI components.schema contains a schema which has a root allOf, it fails to generate an example on the model view.

To Reproduce

  1. Given this OpenAPI demo: https://elements-demo.stoplight.io/?spec=https://api.apis.guru/v2/specs/1password.com/events/1.0.0/openapi.json#/schemas/CursorCollection
  2. No example on the right

Expected behavior

I'd expect the allOf to be "flattened" so that we see all of the cursor properties and the has_more property, and that all should show up as an example on the right.

Additional context

The cursor is defined like this:

"CursorCollection": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Cursor"
          },
          {
            "properties": {
              "has_more": {
                "description": "Whether there may still be more data to fetch using the returned cursor. If true, the subsequent request could still be empty.",
                "type": "boolean"
              }
            }
          }
        ],
        "description": "Common cursor properties for collection responses"
      },

The full OpenAPI file is this: https://api.apis.guru/v2/specs/1password.com/events/1.0.0/openapi.json

Screenshots

image

created time in 3 days

PullRequestReviewEvent

Pull request review commentstoplightio/prism

Fix/1917 ignore example key on invalid body

 Calling `curl http://127.0.0.1:4010/pets/123` on this will give:  Calling the same URL with the `Prefer` header `example=dog` `http://127.0.0.1:4010/pets/123` will yield to: +<!-- theme: info -->++> #### Remember about providing expected response code+>+> It is always worth to indicate http response code from which `example` should be taken.
> It is always worth to indicate HTTP response code from which `example` should be taken.
lukasz-kuzynski-11sigma

comment created time in 3 days

PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent
PullRequestReviewEvent