Skip to content

Commit

Permalink
all: Clean up format
Browse files Browse the repository at this point in the history
Signed-off-by: arekkas <aeneas@ory.am>
  • Loading branch information
arekkas committed Nov 18, 2018
1 parent cefaf46 commit f26a66d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
34 changes: 17 additions & 17 deletions doc_swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,26 @@ package main
//
// swagger:model genericError
type genericError struct {
// Name is the error name.
//
// required: true
// example: The requested resource could not be found
Name string `json:"error"`
// Name is the error name.
//
// required: true
// example: The requested resource could not be found
Name string `json:"error"`

// Hint contains further information on the nature of the error.
//
// example: Object with ID 12345 does not exist
Hint string `json:"error_hint"`
// Hint contains further information on the nature of the error.
//
// example: Object with ID 12345 does not exist
Hint string `json:"error_hint"`

// Code represents the error status code (404, 403, 401, ...).
//
// example: 404
Code int `json:"error_code"`
// Code represents the error status code (404, 403, 401, ...).
//
// example: 404
Code int `json:"error_code"`

// Debug contains debug information. This is usually not available and has to be enabled.
//
// example: The database adapter was unable to find the element
Debug string `json:"error_debug"`
// Debug contains debug information. This is usually not available and has to be enabled.
//
// example: The database adapter was unable to find the element
Debug string `json:"error_debug"`
}

// Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is
Expand Down
16 changes: 8 additions & 8 deletions jwk/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,19 @@ type swaggerJSONWebKey struct {
X5c []string `json:"x5c,omitempty"`

// example: vTqrxUyQPl_20aqf5kXHwDZrel-KovIp8s7ewJod2EXHl8tWlRB3_Rem34KwBfqlKQGp1nqah-51H4Jzruqe0cFP58hPEIt6WqrvnmJCXxnNuIB53iX_uUUXXHDHBeaPCSRoNJzNysjoJ30TIUsKBiirhBa7f235PXbKiHducLevV6PcKxJ5cY8zO286qJLBWSPm-OIevwqsIsSIH44Qtm9sioFikhkbLwoqwWORGAY0nl6XvVOlhADdLjBSqSAeT1FPuCDCnXwzCDR8N9IFB_IjdStFkC-rVt2K5BYfPd0c3yFp_vHR15eRd0zJ8XQ7woBC8Vnsac6Et1pKS59pX6256DPWu8UDdEOolKAPgcd_g2NpA76cAaF_jcT80j9KrEzw8Tv0nJBGesuCjPNjGs_KzdkWTUXt23Hn9QJsdc1MZuaW0iqXBepHYfYoqNelzVte117t4BwVp0kUM6we0IqyXClaZgOI8S-WDBw2_Ovdm8e5NmhYAblEVoygcX8Y46oH6bKiaCQfKCFDMcRgChme7AoE1yZZYsPbaG_3IjPrC4LBMHQw8rM9dWjJ8ImjicvZ1pAm0dx-KHCP3y5PVKrxBDf1zSOsBRkOSjB8TPODnJMz6-jd5hTtZxpZPwPoIdCanTZ3ZD6uRBpTmDwtpRGm63UQs1m5FWPwb0T2IF0
N string `json:"n,omitempty"`
N string `json:"n,omitempty"`

// example: AQAB
E string `json:"e,omitempty"`
E string `json:"e,omitempty"`

// example: T_N8I-6He3M8a7X1vWt6TGIx4xB_GP3Mb4SsZSA4v-orvJzzRiQhLlRR81naWYxfQAYt5isDI6_C2L9bdWo4FFPjGQFvNoRX-_sBJyBI_rl-TBgsZYoUlAj3J92WmY2inbA-PwyJfsaIIDceYBC-eX-xiCu6qMqkZi3MwQAFL6bMdPEM0z4JBcwFT3VdiWAIRUuACWQwrXMq672x7fMuaIaHi7XDGgt1ith23CLfaREmJku9PQcchbt_uEY-hqrFY6ntTtS4paWWQj86xLL94S-Tf6v6xkL918PfLSOTq6XCzxvlFwzBJqApnAhbwqLjpPhgUG04EDRrqrSBc5Y1BLevn6Ip5h1AhessBp3wLkQgz_roeckt-ybvzKTjESMuagnpqLvOT7Y9veIug2MwPJZI2VjczRc1vzMs25XrFQ8DpUy-bNdp89TmvAXwctUMiJdgHloJw23Cv03gIUAkDnsTqZmkpbIf-crpgNKFmQP_EDKoe8p_PXZZgfbRri3NoEVGP7Mk6yEu8LjJhClhZaBNjuWw2-KlBfOA3g79mhfBnkInee5KO9mGR50qPk1V-MorUYNTFMZIm0kFE6eYVWFBwJHLKYhHU34DoiK1VP-svZpC2uAMFNA_UJEwM9CQ2b8qe4-5e9aywMvwcuArRkAB5mBIfOaOJao3mfukKAE
D string `json:"d,omitempty"`
D string `json:"d,omitempty"`

// example: 6NbkXwDWUhi-eR55Cgbf27FkQDDWIamOaDr0rj1q0f1fFEz1W5A_09YvG09Fiv1AO2-D8Rl8gS1Vkz2i0zCSqnyy8A025XOcRviOMK7nIxE4OH_PEsko8dtIrb3TmE2hUXvCkmzw9EsTF1LQBOGC6iusLTXepIC1x9ukCKFZQvdgtEObQ5kzd9Nhq-cdqmSeMVLoxPLd1blviVT9Vm8-y12CtYpeJHOaIDtVPLlBhJiBoPKWg3vxSm4XxIliNOefqegIlsmTIa3MpS6WWlCK3yHhat0Q-rRxDxdyiVdG_wzJvp0Iw_2wms7pe-PgNPYvUWH9JphWP5K38YqEBiJFXQ
P string `json:"p,omitempty"`
P string `json:"p,omitempty"`

// example: 0A1FmpOWR91_RAWpqreWSavNaZb9nXeKiBo0DQGBz32DbqKqQ8S4aBJmbRhJcctjCLjain-ivut477tAUMmzJwVJDDq2MZFwC9Q-4VYZmFU4HJityQuSzHYe64RjN-E_NQ02TWhG3QGW6roq6c57c99rrUsETwJJiwS8M5p15Miuz53DaOjv-uqqFAFfywN5WkxHbraBcjHtMiQuyQbQqkCFh-oanHkwYNeytsNhTu2mQmwR5DR2roZ2nPiFjC6nsdk-A7E3S3wMzYYFw7jvbWWoYWo9vB40_MY2Y0FYQSqcDzcBIcq_0tnnasf3VW4Fdx6m80RzOb2Fsnln7vKXAQ
Q string `json:"q,omitempty"`
Q string `json:"q,omitempty"`

// example: P-256
Crv string `json:"crv,omitempty"`
Expand All @@ -203,11 +203,11 @@ type swaggerJSONWebKey struct {
Qi string `json:"qi,omitempty"`

// example: GawgguFyGrWKav7AX4VKUg
K string `json:"k,omitempty"`
K string `json:"k,omitempty"`

// example: f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU
X string `json:"x,omitempty"`
X string `json:"x,omitempty"`

// example: x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0
Y string `json:"y,omitempty"`
Y string `json:"y,omitempty"`
}
4 changes: 3 additions & 1 deletion oauth2/oauth2_provider_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ package oauth2_test

import (
context "context"
http "net/http"

gomock "github.com/golang/mock/gomock"

fosite "github.com/ory/fosite"
http "net/http"
)

// Mock of OAuth2Provider interface
Expand Down

0 comments on commit f26a66d

Please sign in to comment.