package sbt.internal.util
@target(Java)
@codecPackage("sbt.internal.util.codec")
@fullCodec("JsonProtocol")

enum Severity
{
  Info, Warn, Error
}

type Position {
  line: Int
  lineContent: String!
  offset: Int
  pointer: Int
  pointerSpace: String
  sourcePath: String
  sourceFile: java.io.File
  startOffset: Int
  endOffset: Int
  startLine: Int
  startColumn: Int
  endLine: Int
  endColumn: Int
}

type Problem {
  category: String!
  severity: Severity!
  message: String!
  position: Position!
  rendered: String
}
