Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slot depth unit to 'slot'. Add block type #139

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

akegalj
Copy link
Contributor

@akegalj akegalj commented Apr 1, 2019

Issue Number

#93

Overview

  • I have fixed slot depth unit to "slot"
  • I have added swagger block type for special use case to differente between slot and block

Comments

This adds slight modification to our swagger.json to make types more strict. It might be overkill though

@@ -35,12 +35,27 @@ numberOfSlots: &numberOfSlots
properties:
quantity:
type: integer
minimum: 0
minimum: 1337
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit more "arbitrary" number

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... But this is wrong here, it states that the minimum should be 1337 😶
Did you mean to add it as example ?

unit:
type: string
enum:
- slot
example: 1337
example: "slot"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already discussed over slack that old slot unit was probably a mistake

@akegalj akegalj requested a review from KtorZ April 1, 2019 20:17
@akegalj akegalj marked this pull request as ready for review April 1, 2019 20:18
@akegalj akegalj force-pushed the akegalj/93/improve_return_type branch from 6a0871e to eb908bb Compare April 2, 2019 09:33
@akegalj akegalj requested a review from KtorZ April 2, 2019 14:04
@KtorZ KtorZ force-pushed the akegalj/93/improve_return_type branch from bd3862b to e313170 Compare April 2, 2019 17:31
@KtorZ KtorZ merged commit 45973a6 into master Apr 2, 2019
@KtorZ KtorZ deleted the akegalj/93/improve_return_type branch April 2, 2019 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants