Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Sep 27, 2023
1 parent 3b0259a commit 8bf3978
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
18 changes: 14 additions & 4 deletions src/FileFormats/MOF/MOF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@ import OrderedCollections: OrderedDict
import JSON
import MathOptInterface as MOI

const SCHEMA_PATH = joinpath(@__DIR__, "mof.1.5.schema.json")
const VERSION = v"1.5"
const SUPPORTED_VERSIONS =
(v"1.5", v"1.4", v"1.3", v"1.2", v"1.1", v"1.0", v"0.6", v"0.5", v"0.4")
const SCHEMA_PATH = joinpath(@__DIR__, "mof.1.6.schema.json")
const VERSION = v"1.6"
const SUPPORTED_VERSIONS = (
v"1.6",
v"1.5",
v"1.4",
v"1.3",
v"1.2",
v"1.1",
v"1.0",
v"0.6",
v"0.5",
v"0.4",
)

const OrderedObject = OrderedDict{String,Any}
const UnorderedObject = Dict{String,Any}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json-schema.org/schema#",
"$id": "https://jump.dev/MathOptFormat/schemas/mof.1.5.schema.json",
"$id": "https://jump.dev/MathOptFormat/schemas/mof.1.6.schema.json",
"title": "The schema for MathOptFormat",
"type": "object",
"required": ["version", "variables", "objective", "constraints"],
Expand All @@ -11,7 +11,7 @@
"required": ["minor", "major"],
"properties": {
"minor": {
"enum": [0, 1, 2, 3, 4, 5]
"enum": [0, 1, 2, 3, 4, 5, 6]
},
"major": {
"const": 1
Expand Down

0 comments on commit 8bf3978

Please sign in to comment.