Test openapi schema of Register
Fix some routes Improve Schema Validation
This commit is contained in:
10
src/main/kotlin/fr/dcproject/common/BitMaskEnum.kt
Normal file
10
src/main/kotlin/fr/dcproject/common/BitMaskEnum.kt
Normal file
@@ -0,0 +1,10 @@
|
||||
package fr.dcproject.common
|
||||
|
||||
interface BitMaskI {
|
||||
val bit: Long
|
||||
|
||||
infix operator fun contains(which: BitMaskI): Boolean = bit and which.bit == which.bit
|
||||
infix operator fun plus(mask: BitMaskI): BitMaskI = BitMask(mask.bit and this.bit)
|
||||
}
|
||||
|
||||
class BitMask(override val bit: Long) : BitMaskI
|
||||
Reference in New Issue
Block a user